False
False = 0
Example
procedure ScriptEvent(var Value: variant);
var
IsReady: Boolean;
begin
IsReady := False;
if not IsReady then
Value := 'Not ready';
end;
Usage
Represents the Boolean false condition and the zero-valued member of Velox scripting's Boolean type.
Conditions and short-circuiting
An if, while or Boolean expression treats False as the unsatisfied branch. Velox uses short-circuit Boolean evaluation. For Boolean operands:
False and RightExpressiondoes not need to evaluateRightExpression;False or RightExpressionmust evaluateRightExpressionto determine the result; andnot Falseevaluates toTrue.
Do not put required side effects in the right-hand side of an and expression, because they will not run when the left side is False.
Additional Technical Info
False is the negative member of PascalScript's Boolean type. Use it for a logical condition that is not satisfied, a disabled switch or the initial state of a Boolean flag.
The example assigns a genuine Boolean value, so the not expression evaluates to True and sets Value to Not ready. It is source-reviewed and is not executed by the documentation workflow.
Type and value
Velox's modified PascalScript compiler creates the type as Boolean = (False, True). False is therefore an enum member with ordinal zero, not a Velox-imported mutable variable and not merely an untyped numeric macro.
The compiler can use the ordinal representation internally, and converting a Boolean to an ordinal context produces zero for False. Keep the logical type in normal script code; its storage representation is not a good substitute for a documented integer or database flag contract.
Conversion boundaries
Falseand the Velox comparison constantSameboth have a numeric representation of zero, but they express different domains. UseSamewhen testing the result ofCompareValue; useFalsefor a Boolean condition.- A
Variantcan hold a Boolean, integer, string,NullorEmpty. Test dynamic values and convert them deliberately rather than assuming every zero-like value is a BooleanFalse. - Database and configuration flags may use
0/1,Y/Nor other conventions. Validate that external contract before assigning a Boolean.
Side effects
None. False is a compile-time language value.
Errors
Referencing False itself does not raise. Conversion of an incompatible dynamic or textual value to Boolean can fail before the assignment or condition is evaluated.
Performance and concurrency
Reading the value requires no allocation, I/O or shared mutable state. Short-circuiting can avoid evaluation of the right operand.
Related entries
Trueis the otherBooleanmember.Booleandefines the logical type.Sameis the numeric zero result of Velox comparison functions; it is not a Boolean alias.Boolean operatorsexplains logical expressions.
External references
Created 2026-07-15