if (Logical1){command1;command2;...} [elseif (Logical2){...}] else{...} |
'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.