---
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/0c642abce71b645ae9df3c6046c2bf8396a2845c/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`
