Types/Literals
Dasel supports the following literal types in queries.
Integers
Integers are represented as whole numbers.
1
5234
-530Note: If -530 is detected as a bad binary expression (nothing subtract 530) it can be grouped, e.g. (-530).
Floats
Numbers are interpreted as floats when they contain a decimal place . or are followed with an f.
1.1
23.45
123fBooleans
Bools are matched by a case insensitive match on true or false.
true
True
TRUE
false
False
FALSEStrings
Strings are a sequence of characters surrounded by quotes — both single and double quotes are supported.
Null
The null literal represents an absent or empty value.
null is returned by functions like first and last on empty arrays, and is the fallback trigger for the ?? coalesce operator.
Arrays
Array literals are defined with square brackets. See Arrays/slices for full documentation.
Objects
Object/map literals are defined with curly braces. See Objects/maps for full documentation.
Last updated