# lessOrEqual · FT4 TypeScript client · Chromia Docs (concept)

> lessOrEqual< T extends string>(
    ...variableValue: RuleVariableValue < T > | [ RuleVariableValue < T >],
): SimpleRule < T > Creates a rule variable tha

Source: https://docs.chromia.com/pages/ft4-ts-client/functions/accounts.lessOrEqual/

Function

# lessOrEqual

* ```signature
  lessOrEqual<T extends string>(
      ...variableValue: RuleVariableValue<T> | [RuleVariableValue<T>],
  ): SimpleRule<T>
  ```

  Creates a rule variable that (can be passed to an auth descriptor) with
  the "less than or equal" (<=) operation for the provided variable.
  Example: lessOrEqual(opCount(10))

  #### Type Parameters

  + T extends string

  #### Parameters

  + ...variableValue: [RuleVariableValue](https://docs.chromia.com/pages/ft4-ts-client/types/accounts.RuleVariableValue/)<[T](#lessorequalt)> | [[RuleVariableValue](https://docs.chromia.com/pages/ft4-ts-client/types/accounts.RuleVariableValue/)<[T](#lessorequalt)>]

    the variable value to use

  #### Returns [SimpleRule](https://docs.chromia.com/pages/ft4-ts-client/types/accounts.SimpleRule/)<[T](#lessorequalt)>

  a rule variable

[View this page on docs.chromia.com](https://docs.chromia.com/pages/ft4-ts-client/functions/accounts.lessOrEqual.html)Generated API reference, mirrored from the live docs
