Skip to content
HPCCSystems Solutions Lab
HPCCSystems Solutions Lab

BOOLEAN

A Boolean data type is a TRUE/FALSE expression.

Syntax

BOOLEAN attribName
ValueDefinition
BOOLEANOptional.
attribNameThe name by which the variable will be invoked.

Example


/*
BOOLEAN Examples.
*/

isFlag := TRUE;
OUTPUT(isFlag, NAMED('isFlag'));

// When defined BOOLEAN 1 = TRUE and 0 = FALSE
BOOLEAN hasValidName := 0;
OUTPUT(HasValidName, NAMED('HasValidName'));

// Boolean evaluation
OUTPUT(10 >= 2, NAMED('Evaluation'));
Try Me