next up previous contents index
Next: SECOND Up: A Function Reference Previous: S

SALARM

 

Syntax: @SALARM(X, S)

X = an expression
S = a string

@SALARM evaluates the string S as an expression if X evaluates non-zero. The return value is set to the result of evaluating expression S. If X evaluates to zero, S is not evaluated and the return value is zero. Unlike @ALARM, the terminal does not beep (silent alarm). @SALARM differs from @IF by taking a string argument whose contents are evaluated as an expression only when X is non-zero. (This function is included for historical purposes. The same results can be achieved with the ?: operator.)

Examples:

@SALARM(Pressure > 500, ``@REMOTE_FN(Pressure)'') If ``Pressure'' exceeds 500, REMOTE_FN is called with the value of ``Pressure''.


next up previous contents index
Next: SECOND Up: A Function Reference Previous: S

NExS User's Guide, Version 1.4.5
Grey Trout Software
11 April 1999