Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Group: Flow Control
See also: else if

Function: endif
Description: endif ends an if-endif sequence. every if has to be followed by an endif and has else as an optional part.

Usage: if (cond) <xplore commands> {else <xplore commands>} endif

Example:
proc(y)=abso(x)
  if(x<0)
    y=-1.0*x
  else
    y=x
  endif
endp
abso(-eh)

Result:
Contents of y

[1,]   2.7183



(C) MD*TECH Method and Data Technologies, 05.02.2006