Please note that the recommended version of Scilab is 6.1.1. This page might be outdated.
See the recommended documentation of this function
Scilabヘルプ >> Scilab > Control flow > else
else
if-then-elseおよびselect-case-then-elseのキーワード
例
val = %t
if val==%t then
disp("true");
else
disp("false");
end
select val
case %t then
disp("true");
case %f then
disp("false");
else
disp("a third variant");
end
参照
- elseif — if-then-elseのキーワード
- if — 条件付き実行
- select — select キーワード
- &, && — Binary AND between integers. Logical AND over/between booleans and numbers
- |, || — Binary OR between integers. Logical OR over/between booleans and numbers
Comments
Add a comment:
Please login to comment this page.