Equinox Online Help - Language Reference - A to Z

Home

Logical

Applies to
SyntaxLogical Variable1Name [, Variable2Name, ... ]
Action[Statement] Declares logical variables.
ScopeUsable anywhere
Notes

This statement declares logical variables. Variable1Name is the name of the first new variable. Many logical variables can be declared using one Logical statement by adding further variable names, separated by commas.

CategoryDeclarations
See Also Date, Define, Memo, Number, Procedure_EndProcedure, Public, Radio, String, Time
Example

The following example declares a logical variable and sets it to True or False depending on the state of other fields.

logical ErrorFound
...

if accno = "" Or qty < 0 then
ErrorFound = false
else
ErrorFound = true

This is the same as writing:

ErrorFound = accno = "" Or qty < 0