Previous Topic: BATCHRC()

Next Topic: CALC()

BOOLWORD()

Use the BOOLWORD() function to perform a Boolean operation on two numeric values and to return the numeric result.

Syntax

The BOOLWORD() function has this syntax:

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

Arguments

The BOOLWORD() function takes these arguments:

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

The BOOLWORD() function produces these 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'