Changes

Jump to navigation Jump to search
3 bytes removed ,  17:27, 2 February 2020
Line 3: Line 3:  
Values in TyD can be simple_values, “quoted strings”, numbers, lists, tables or null. Values can be given a name, making them a record of name/value. You can make a table using curly brackets, and putting a list of records in it, separated by new lines or semicolons, e.g.
 
Values in TyD can be simple_values, “quoted strings”, numbers, lists, tables or null. Values can be given a name, making them a record of name/value. You can make a table using curly brackets, and putting a list of records in it, separated by new lines or semicolons, e.g.
 
  <nowiki>{
 
  <nowiki>{
Name “Troll”
+
Name "Troll"
 
Health 10
 
Health 10
 
}</nowiki>
 
}</nowiki>
Line 9: Line 9:  
  <nowiki>[ 1; 2; 3 ]</nowiki>
 
  <nowiki>[ 1; 2; 3 ]</nowiki>
 
You can put lists in tables and tables in lists, but note that when you put a table in a list, it shouldn’t have a name (since it’s not a record). A TyD Document should contain a list of records. Most TyD documents in Software Inc. contain a single table record. Localizations contain a list of string records.
 
You can put lists in tables and tables in lists, but note that when you put a table in a list, it shouldn’t have a name (since it’s not a record). A TyD Document should contain a list of records. Most TyD documents in Software Inc. contain a single table record. Localizations contain a list of string records.
 +
 
==Example==
 
==Example==
 
  <nowiki>Table
 
  <nowiki>Table

Navigation menu