Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
mdf_file_format [2021/06/04 10:09] – [Elements] nlondonmdf_file_format [2023/09/01 16:05] (current) – Added more information to Array nlondon
Line 17: Line 17:
 ====== Valid Identifier Characters ====== ====== Valid Identifier Characters ======
  
-Names and Values can only contain these characters (Excluding spaces):+Property Names can only contain these characters (Excluding spaces):
 <code> <code>
  A-Z a-z 0-9 _!+-.  A-Z a-z 0-9 _!+-.
 </code> </code>
  
-Optionally, you can also surround the Name or Value with double quotes to include otherwise illegal characters, such as spaces, colons, and so on.+Optionally, you can also surround the Name with double quotes to include otherwise illegal characters, such as spaces, colons, and so on.
 <code> <code>
  ✅ ThisIsAValidIdentifier  ✅ ThisIsAValidIdentifier
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>