Next: elseif Up: MacAnova Help File Previous: eigenvals()   Contents

else

Usage:
if (Logical1){command1;command2;...} [elseif (Logical2){...}] else{...}



Keywords: syntax, control
'else' is a syntax element used in conjuction with 'if' and optionally
with 'elseif'.

A typical usage would be
  Cmd> if(x > 1){y <- 1}elseif(x < 0){y <- -1}else{y <- 0}

Type help("if") for complete information.


Gary Oehlert 2003-01-15