256
edits
(→Types) |
|||
Line 18: | Line 18: | ||
Number may be either float or integer. | Number may be either float or integer. | ||
'''Example: Numbers''' | |||
1 | |||
The above example is classified as a number. | |||
1.1 | |||
This example is also classified as a number. | |||
"1" | |||
This is too a number, because a check is performed on every string to see whether it is a number or not. | |||
"-1" | |||
This is the most efficient way to specify a negative number. Because of the way the parsing algoritm works only writing <code>-1</code> doesn't work. | |||
'''Example: Strings''' | |||
"string" | |||
'string' | |||
" 1" | |||
All three examples are strings. Both " and ' may be used with strings. You cannot escape anything inside a string. This means <code>{{ "}}" }}</code> or <code>{{ "\"" }}</code> gives you an error message. | |||
'''Example: Boolean''' | |||
true | |||
false | |||
Boolean values may only be lowercase. | |||
=== Operators === | |||
+, -, * , /, <, >, ==, !=, <=, >=, ||, &&, ( and ). | |||
=== Variables === | === Variables === |
edits