These are the most commonly used Data Types in Kodika and programming.
Text (or string) is the data type that describes a combination of characters.
Int includes all numbers with are not decimal, meaning all integers. Int is a subset of number data type.
-3 are valid values for Int data type, but
3.13 is not. Suppose you try to assign a non-integer. In that case, Kodika will convert it to an integer by deleting everything after the decimal separator and not by rounding the number. For example, both
3.89 will be converted to
Number data type includes all decimal and integers, which means all valid numbers.
-4.99 are valid values for the Number data type.
The Bool (or boolean) data type can have only two values:
False(NO). The True/False Bool data type is used to check whether a condition is met or not.
True/False Bool data types can be used in IF Code Blocks.
The Image data type represents an Image.
Note: You should not confuse this data type with the Image Asset or the Server Image. You can get the image from an Image Asset or a Server Image but are not the same data type. Check out also Image Asset vs Server Image vs Image.
Color data type represents colors in Kodika.
Date Time data type describes a specific point in time, including both the date and the time.
Date Only data type is similar to Date Time, but it includes only the date.
Tip: For example, you can use it to store birthdays.
Dictionary is a complex data type that describes a collection of key-value pairs. You will need to use Code blocks to access and modify their values.