Scilab 5.3.3
Scilab help >> Scilab > Scilab keywords > select
select
select キーワード
説明
select expr, case expr1 then instructions1, case expr2 then instructions2, ... case exprn then instructionsn, [else instructions], end
注意:
唯一の規則は,各 "then" キーワードを対応する "case" キーワードと同じ行に 置く必要があることです.
キーワード "then" の代わりにキャレッジリターンまたはカンマを使用することができます.
instructions1はexpr1=exprの場合に実行される, といったようになります.
警告: 条件文(if while for または select/case)の本体の定義に使用できる文字数は 16k に制限されています.
例
| << return | Scilab keywords | semicolon (;) >> |