Basics
Comments, variables, values, strings, and the operators you will use every day.
Comments
Three ways to leave notes in a tag. Comments are skipped by the parser.
Variables
Declare with let, const, or var. You can also skip the keyword and let Rune infer the variable. The assignment operators behave as expected.
Values
Rune has the usual value types: numbers, strings, booleans, null, undefined, arrays, and dictionaries.
Read any key on a dictionary or index into an array with dot notation or square brackets. Numbers work as dot keys too.
Strings and interpolation
Use single or double quotes. Inside a string, [name] is replaced with the value of the variable name. The path can be as deep as you like.
Write \[ for a literal opening bracket, and reach for backtick strings when you prefer ${...} syntax.
Operators
Arithmetic, comparison, logic, membership, and more are all built in.
== and != compare loosely: null and undefined count as equal, and numbers and booleans coerce. So "5" == 5 is true. To check whether an argument or lookup is missing, compare against null.