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

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

# Function: integerLiteral()

> **integerLiteral**(`value`, `min`, `max`): `string`

Defined in: [packages/b2c-tooling-sdk/src/operations/cip/sql.ts:127](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/0c642abce71b645ae9df3c6046c2bf8396a2845c/packages/b2c-tooling-sdk/src/operations/cip/sql.ts#L127)

Validates and returns an integer SQL literal within an inclusive range.

## Parameters

### value

`string`

Raw integer string

### min

`number`

Inclusive lower bound

### max

`number`

Inclusive upper bound

## Returns

`string`

The integer rendered as a bare SQL literal

## Throws

If the value is not an integer within `[min, max]`
