Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Français - Português - Русский

Please note that the recommended version of Scilab is 6.0.2. 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のキーワード

説明

ifおよびselectで使用されます.

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
Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Feb 12 23:12:39 CET 2018