Lua Programming/How to Lua/comma

      Separating the elements of a structure

      The comma symbol is used to separate the elements of a structure:

      student {
        name = "Bob"
        age = 19,
        gender = "M",  -- A comma after the last element is optional
      }
      
      Last modified on 1 March 2011, at 00:34