Similar to other programming languages, PRX employs a predefined set of data types. The following data types are currently supported.
STR
String (e.g. "VALUE"
)
NUM
Positive or negative integer (e.g. -23
)
BOOL
Boolean value (TRUE
/FALSE
)
LIST
List for values of any type (e.g. ["VAL1","VAL2","VAL3"]
)
VOID
Void (for missing parameters and return values)
OBJ
Object (for storing SmartJCL statement pointers)
Every variable in PRX is linked to a specific data type. Similarly, functions always accept input parameters and return values that match these data types. We will cover functions in more detail in a future chapter.
Next up, we will modify values by using operators.