Logyx uses a selection of data types. You don't have to use typehinting to indicate the type of value. Logyx automatically assigns the type of value.
A string can be typed with or without quotes. When using special characters be sure to add quotes so logyx does not run into any misunderstanding of your input.
example_1: example
example_2: 'example'
example_3: "example"
An integer can be typed as a number.
You may use the prefix
-
or
+
to indicate the sign.
You may use underscores for improved readability.
example_1: 100000
example_2: +100000
example_3: 100_000
An integer can be typed as a number with decimals.
You may use the prefix
-
or
+
to indicate the sign.
You may use underscores for improved readability.
example_1: 1.23
example_2: +1.23
A datetime can be typed according to the ISO 8601 format.
example_1: 2023-01-09T07:10:38+00:00
example_2: 2023-01-09T07:10:38Z
example_3: 20230109T071038Z
A boolean can be typed as either
true
or
false
.
The first letter is case-insensitive.
example_1: True
example_2: true
A void can be typed as
null
.
The first letter is case-insensitive.
example_1: Null
example_2: null
A list can be typed by using square brackets or in the form of a list using dashes.
example_1: [ a, b, c ]
example_2:
- a
- b
- c