-
Notifications
You must be signed in to change notification settings - Fork 1
AcuBool Operator
Martin Danielsson edited this page Nov 17, 2025
·
1 revision
Maps boolean-like values to Acumatica-compatible boolean integers.
The acubool operator converts various boolean representations (true/false, True/False, 1/0) to Acumatica's boolean format, which uses 1 for true and 0 for false.
| Parameter | Type | Description |
|---|---|---|
| value | String | The value to convert. Accepts: "true", "True", "1" (mapped to 1), "false", "False", "0" (mapped to 0), or any other value (defaults to 0) |
Returns "1" for true values, "0" for false values or any unrecognized input.
<Field name="IsActive">acubool($IsEnabled)</Field>
<Field name="IsDeleted">acubool("false")</Field>
<Field name="IsPublished">acubool($Published)</Field>| IsEnabled | Published |
|---|---|
| true | 1 |
| True | 0 |
| false | yes |
| 1 | False |
| IsActive | IsDeleted | IsPublished |
|---|---|---|
| 1 | 0 | 1 |
| 1 | 0 | 0 |
| 0 | 0 | 0 |
| 1 | 0 | 0 |
- The operator is case-insensitive for "true" and "false" strings
- Any unrecognized value defaults to
0(false) - This is useful when importing data into Acumatica, which expects bit/boolean fields as 0 or 1