Boolean Variables

Prev Next Home Home Table Of Contents Index

BOOLEAN VARIABLES

Boolean variables are True or False. For example:


 var Adult
    Adult = True
    if not Adult then Write 'You must be 21 to enter.'

Boolean values can be set by computation:

Example:
Adult = Age >= 21

In this example the result of Age >= 21 is stored in the variable Adult.

If you use a boolean variable by itself, MarxMenu assumes you are setting it to on. Thus:


  ClearScreenOnExit

is the same as:


  ClearScreenOnExit On

Prev Next Home Home Table Of Contents Index

Sponsors
Shopping
Forum
Forum
email
EMail
Index
Index
Home
Home