|
|||||
Switches | |||||
Prerequisite Concepts | Related Syntax |
A switch is an object that may have one of two different values: true
or false
. The value of a switch can be used anywhere a test expression is permitted.
Switches are automatically initialized to false
when they are created. It is recommended that programmers explicitly initialize switch items before using them. Forgetting to initialize (or re-initialize) variables is a frequent source of errors.
Setting a switch value to true
is referred to as "activating" that switch, and setting the value to false
is referred to as "deactivating" the switch. OmniMark provides the activate
and deactivate
actions to set the value of the switch.
Prerequisite Concepts Variables |
Related Syntax global, local true, false |
---- |