Link Search Menu Expand Document

Suggested Data Types

These are the most commonly used Data Types in Kodika and programming.

Text

Text (or string) is the data type that describes a combination of characters.

Int

Int includes all numbers with are not decimal, meaning all integers. Int is a subset of number data type.
Note: 3 and -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.13 and 3.89 will be converted to 3.

Number

Number data type includes all decimal and integers, which means all valid numbers.
Tip: 3, 3.13, -3, 0, -4.99 are valid values for the Number data type.

True/False Bool

The Bool (or boolean) data type can have only two values: True(YES) or False(NO). The True/False Bool data type is used to check whether a condition is met or not.
Tip: True/False Bool data types can be used in IF Code Blocks.

Image

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

Color data type represents colors in Kodika.

Url

URL data type represents a URL value.
Note: URL is not the same as text data type. You can convert a URL to text using a code block. You can also create a URL from a text, if the text is a valid URL.

Date Time

Date Time data type describes a specific point in time, including both the date and the time.

Date Only

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

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.