IntegerInput
What is it?
The IntegerInput node is a simple way to input integer (whole) number values.
When would I use it?
Use this node when you want to:
- Define a whole number value without decimals
- Create a configurable integer parameter for your workflow
- Set up counters, indices, or quantity values
- Establish limits, thresholds, or other whole-number values
How to use it
Basic Setup
- Add an IntegerInput node to your workflow
- Set your desired integer value
Parameters
- integer: A whole number value (default is 0)
Outputs
- integer: The integer value that can be used by other nodes
Example
Imagine you want to set a maximum token limit for an AI response:
- Add an IntegerInput to your workflow
- Set the "integer" value to 500
- Connect the output to a model's max_tokens parameter
- The AI model will now limit its responses to 500 tokens
Important Notes
- This node creates a single integer value
- The default value is 0 if none is specified
- You can update the value through the node's properties
- Integers represent whole numbers like 1, 42, -7, or 0