Skip to main content

numberCriteria

Index

Functions

between

  • Require field value to be between 2 numbers.

float

  • Require field value to be a float (requires a decimal).

gt

  • Require field value to be greater than a number.

gte

  • Require field value to be greater than or equals to a number.

int

  • Require field value to be an integer.

lt

  • Require field value to be less than a number.

lte

  • Require field value to be less than or equals to a number.

negative

  • Require field value to be negative and not zero.

oneOf

  • Require field value to be one of the provided numbers.

positive

  • Require field value to be positive and not zero.