Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
mdf_file_format [2021/06/04 11:42] – [Valid Identifier Characters] nlondonmdf_file_format [2023/09/01 16:05] (current) – Added more information to Array nlondon
Line 75: Line 75:
 ===== Array ===== ===== Array =====
  
-**Array** elements are very similar to [[#Chunk]] elements, in that they contain multiple other properties, but the specific difference is that properties in an array don't need to define a name. They //can// define a name, if required, and duplicate names are also allowed.+**Array** elements are very similar to [[#Chunk]] elements, in that they contain multiple other properties, but the specific difference is that properties in an array don't need to define a name. They //can// define a name, if required, and duplicate names are also allowed. Arrays are defined by using a starting square bracket (''[''), followed by 0 or more values, followed by a closing square bracket ('']'').
  
 Like [[#Chunk|Chunks]], Arrays can be nested, and [[#Chunk|Chunks]] can be also be used as elements in the array. Like [[#Chunk|Chunks]], Arrays can be nested, and [[#Chunk|Chunks]] can be also be used as elements in the array.
Line 81: Line 81:
 <code> <code>
  MyArray =  MyArray =
- {+ [
  "Value without a name"  "Value without a name"
  NamedElement = "This is an element with a name"  NamedElement = "This is an element with a name"
Line 93: Line 93:
  "And this is an unnamed array in an array!"  "And this is an unnamed array in an array!"
  ]  ]
- }+ ]
 </code> </code>