| NEST HelpDesk | Command Index | NEST Quick Reference |
| Name: | ifelse - conditionaly execute a procedure | ||
| Synopsis: |
boolean {proc1} {proc2} ifelse -> -
boolean anytoken1 anytoken1 ifelse -> -
| ||
| Description: | ifelse executes anytoken1 if the boolean is true, and anytoken2 otherwise. The supplied tokens usually are procedures. Alternatives: Function ifelse_ (undocumented) -> behaviour and synopsis are the same, except that no warnings or error messages are thrown. | ||
| Examples: |
0 1 gt { (1 > 0) = } { (1 <= 0) =} ifelse -> (0 <= 1)
| ||
| Source: | /home/abuild/rpmbuild/BUILD/nest-2.4.1/sli/slicontrol.cc |
| NEST HelpDesk | Command Index | NEST Quick Reference |
© 2000-2010 The NEST Initiative