Skip to main content

Number

The Number data type in Snappit is designed for steps that require numeric input—such as quantities, prices, counts, or identifiers. It ensures that only valid numeric values are accepted and provides structure and validation to your automation workflows.

This data type is ideal for interacting with form fields, performing conditional logic, or driving iterations based on numerical values.

info

When given numeric input to for loop iterator value loop count will become that numeric value

🔢 Basic Usage

A Number input can be used anywhere you need to enter or manipulate numeric values. For example:

  • Inputting a product quantity in a form
  • Specifying the number of retries in a loop
  • Providing a page number for navigation

warning

Unlike the Text data type, Number inputs do not currently support variable interpolation (e.g., ${A-Text-.value}). All values must be directly provided or passed through other structured logic.

🛠 Schema Options

The schema for a Number field may optionally include the following properties to control and validate input:

  • min — the minimum value allowed.
  • max — the maximum value allowed.
  • default — the default value to be used if no input is provided.

This defines a number input that must be between 1 and 100, and will default to 10 if not specified.


By using the Number data type with these schema options, you can ensure numeric inputs are accurate, predictable, and safely bounded—leading to more reliable automation flows.