This procedure retrieves Boolean value for given object.
Parameter | Type | Description | |
---|---|---|---|
baseNode | 1024A VARYING, VARSIZE | Mandatory | This parameter is used to pass base node. Currently following base nodes are supproted: “IptorAPI”, “method”, “params”, “messages”, “control”, “id” |
node | 1024A VARYING, VARSIZE | Optional | Node name. This parameter is optional. If the structure is more complex then nodes must be divided by colon “:” |
patern | 10i 0 VARSIZE | Optional | Conversion pattern (see patterns) |
valueType | 1A | Optional | Returns type of value (see types of value) |
exists | N | Optional | Returns *ON if value exists, *OFF if value does not exit |
Procedure returns character value depend on pattern (see patterns)
Patterns:
pattern | Desctiption |
---|---|
#true_false | converts JSON true/false -> ’true’/‘false’ return string |
#Y_N | converts JSON true/false -> ‘Y’/‘N’ return string |
#1_0 | converts JSON true/false -> ‘1’/‘0’ return string |
Types of value:
type | Description |
---|---|
O | Object |
C | Character |
N | Numeric |
T | true |
F | false |
0 | null |
E | error |
BLANK | Value does not exist |
Examples:
xxBoolean = reqGetBooleanValue('params': 'freeOfCharge');
xxBoolean = reqGetBooleanValue('params': 'freeOfCharge': #Y_N);
xxBoolean = reqGetBooleanValue('params': 'freeOfCharge': #true_false);