Introduction
HelloID supports multiple data types for user defined variables. This document will detail each data type and provide an example value.
Variable Data Types
String
String variables are used to represent text, such as a word or a sentence.
Example: This is a string.
JSON
JSON variables represent data in JavaScript Object Notation format.
Example: {"firstName":"John", "lastName":"Smith", "id":123456, "city":"Seattle"}
Int
Int, short for "integer", represents whole numeric values.
Minimum value: -2,147,483,648
Maximum value: 2,147,483,648
Example: 32768
Boolean
Boolean variables represent true or false values.
Example: true
Long
The Long data type is used to represent large numeric values.
Minimum value: -9,223,372,036,854,775,808
Maximum value: 9,223,372,036,854,775,807
Example: 2147483648
Char
Char variables are used to represent single text values such as "a", "b", "c", etc.
Example: z
Byte
The byte data type is used to represent small numeric values.
Minimum value: 0
Maximum value: 255
Example: 127
Double
Double variables are used to represent 64-bit floating point numeric values.
Example: 1564898.12345
Decimal
Double variables are used to represent 128-bit floating point numeric values.
Example: 1234.287658498787
Single
Single variables are used to represent 32-bit floating point numeric values.
Example: 1234.456898
Array
The Array data type is used when multiple values should be represented using a single variable, such as in a list or collection. Items in the array should be separated by commas.
Example: ["John", "Charles", "Harry", "William"]