![]() | ヘルプをダウンロード(Windowsのみ) |
所有クラス: programming
要件:MathScript RTモジュール
case expression
Switchステートメントのケースを指定します。CaseとSwitchを一緒に使用します。Switchステートメントの基本となる呼び出し構造は以下のとおりです。
switch expression
case expression
statement, ..., statement
...
otherwise
statement, ..., statement
end
otherwiseケースはオプションで使用できます。LabVIEWは、一致する最初のケースを実行します。
次の表には、この関数のサポート特性 が記載されています。
LabVIEWランタイムエンジンでサポートされる | はい |
RTターゲットでサポートされる | はい |
RTで制限付きの実行時間に適する | 特性なし |
color = 'green';
switch color
case 'green'
disp('color is green');
case 'red'
disp('color is red');
otherwise
disp('color is neither green nor red')
end
役に立った
役に立たなかった