Next: enter() Up: MacAnova Help File Previous: else   Contents

elseif

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



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

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