Command: if

NEST HelpDesk Command Index NEST Quick Reference
Name:
if - conditionaly execute a procedure
Synopsis:
boolean {procedure} if -> -
boolean anytoken if -> -
Examples:
1 0 gt { (1 > 0) = } if -> (1 > 0)
Description:
if executes the supplied token if the boolean
is true. The supplied token usually is a procedure.

Alternatives: Function if_ (undocumented)
-> behaviour and synopsis are the same, except that no
warnings or error messages are thrown.
SeeAlso:
Source:
/usr/src/packages/BUILD/sli/slicontrol.cc
NEST HelpDesk Command Index NEST Quick Reference

© 2004 The NEST Initiative