Skip to content
View as Markdown
View as Markdown

@salesforce/b2c-tooling-sdk / operations/cip / booleanLiteral

Function: booleanLiteral()

booleanLiteral(value): string

Defined in: packages/b2c-tooling-sdk/src/operations/cip/sql.ts:109

Validates a boolean string (true/false, case-insensitive) and returns the SQL literal.

Parameters

value

string

Boolean string value

Returns

string

The lowercase boolean literal true or false

Throws

If the value is not true or false

Released under the Apache-2.0 License.