contentsconceptssyntaxlibrariessampleserrorsindex
Full text search
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
 
----

Top [CONTENTS] [CONCEPTS] [SYNTAX] [LIBRARIES] [SAMPLES] [ERRORS] [INDEX]

Generated: April 21, 1999 at 2:00:52 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © OmniMark Technologies Corporation, 1988-1999.