Parse Int
The int.parse processor takes a string and parses it as an integer with the specified base and bitSize. This processor will return an error if the message being processed is not a string or if the string cannot be parsed into an integer.
- type:
int.parse - params:
- base: (optional, default
10) numerical base to use for parsing the integer - bitSize: (optional, default
64) bit size of the resulting integer
- base: (optional, default
Example
Section titled “Example”This would parse the string payload as a 32 bit, base 10 integer and set the payload to that value.
- type: int.parse params: bitSize: 32