| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
STD:Branch
The STD:Branch module provides If-Else-Then constructions. Some
modules are executed (and others are not), based on some condition.
STD:Branch user inteface:

Condition. Any numerical or logical Bunao
expression. Expressions can contain constant integers, variable
references, and Bunao operators. If the expression yields a number, 0 is
false, and everything else is true. The default value, the empty string,
is true.
The Condition expression is required if this is an "If" branch.
Branch Type. Radiobutton `If' or `Else'. Default type
is `If'.
If this is an `If' branch, Bunao evaluates the condition expression. If true, this modules children are executed. If not, nothing happens. In either case, Bunao makes a note of the value of the condition value.
If this is an `Else' branch, Bunao first checks to see if the last Branch at this level was true. If it was, nothing happens. If it wasn't, Bunao evaluates the condition. If the condition is true, or if the condition wasn't specified, Bunao executes this module's children. As before, in either case, the system makes a note of which choice was taken.
STD:Branch attribute list:
| Attribute | Type | Default | Description |
type |
ifelse
| `if' | sets branch type to `if' or `else' clause |
cond |
value | (blank) | condition to be evaluated for this clause |
6.8.1 Types of Branching 6.8.2 If-Else Macro