DocsBuilt-in functions
Names
Give a value a name, change it, and read it back.
$let
$let[name;value]
Makes a name with a value (nil when there is none).
let.naja
$let[lives;3]
$print[You have $get[lives] lives] najova run let.naja
You have 3 lives
$set
$set[name;value]
Changes a name made with $let, or a member like $set[door.Colour;red].
set.naja
$let[lives;3]
$set[lives;$get[lives] - 1]
$print[Now $get[lives]] najova run set.naja
Now 2
$get
$get[name]
The value of a name, or of a member like $get[door.Colour].
get.naja
$let[hero;$table[name;Ari;hp;20]]
$print[$get[hero.name] has $get[hero.hp] HP] najova run get.naja
Ari has 20 HP