return Scilab keywords semicolon (;)

Scilab manual >> Scilab > Scilab keywords > select

select

select keyword

Description

select expr,
  case expr1 then instructions1,
  case expr2 then instructions2,
  ...
  case exprn then instructionsn,
  [else instructions],
end

Notes:

Warning: the number of characters used to define the body of any conditionnal instruction (if while for or select/case) must be limited to 16k.

Examples

while %t do
  n=round(10*rand(1,1))
  select n
  case 0 then 
    disp(0)
  case 1 then
    disp(1)
  else
    break
  end
end

See Also

return Scilab keywords semicolon (;)