---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../../modules.md) / [operations/cip](../index.md) / booleanLiteral

# Function: booleanLiteral()

> **booleanLiteral**(`value`): `string`

Defined in: [packages/b2c-tooling-sdk/src/operations/cip/sql.ts:109](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/4c2d4c5cb34e8e0ea15a260d257e468c823c4885/packages/b2c-tooling-sdk/src/operations/cip/sql.ts#L109)

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`
