Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Elements

An element is a raw value, either as a the assigned value of a field, or an item in a list. They can be any of the fundamental data types.

things = [ 
    "string"
    1
    null
    false
    ''
      Multi-line
      string
    ''
    [ "another" "list" ]
    { text = "another map"; }
];

In this example, the following parts are elements:

  • "string"
  • 1
  • null
  • '' ... Multi-line string ... '' (abbreviated)
  • [ "another" "list" ]
    • "another"
    • "list"
  • { text = "a map"; }
    • "a map"