Use the BOOLWORD() function to perform a Boolean operation on two numeric values and to return the numeric result.
The BOOLWORD() function has this syntax:
result = BOOLWORD({AND},value,value)
{OR}
{XOR}
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. |
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'
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |