Previous Topic: BATCHRC()Next Topic: CALC()


BOOLWORD()

This function performs a Boolean operation on two numeric values and to return the numeric result.

Syntax

result = BOOLWORD({AND},value,value)
                  {OR}
                  {XOR}

Parameters

result

Numeric result of the operation.

AND

Perform a Boolean AND function.

OR

Perform a Boolean OR function.

XOR

Perform a Boolean exclusive OR function.

value

Numeric value in character-string format.

Return Codes

101 - 103

ARG n MISSING OR INVALID

Example

boolword('OR','020','001') == '21' /* Leading zeros are ignored  */
boolword('OR',2,1)         == '3'
boolword('AND','2','1')    == '0'