mirror of
git://projects.qi-hardware.com/fped.git
synced 2025-04-21 12:27:27 +03:00
introduce keyed tables (?var syntax; WIP)
This cannot be set/changed through the GUI yet.
This commit is contained in:
15
README
15
README
@@ -503,6 +503,21 @@ table
|
||||
|
||||
(x, y) assume the values (1, 2) and (3, 4).
|
||||
|
||||
Tables can also be used to provide information that depends on
|
||||
other variables. The value of such a variable acts as a key, and a
|
||||
row is only selected if all the keys in that row match the
|
||||
respective variables. To mark a variable as being used as key, its
|
||||
name it prefixed with a question mark.
|
||||
|
||||
Example:
|
||||
|
||||
loop n = 1, 2, 3
|
||||
table
|
||||
{ ?n, name }
|
||||
{ 1, "one" }
|
||||
{ 2, "two" }
|
||||
{ 3, "three" }
|
||||
|
||||
|
||||
Expressions
|
||||
-----------
|
||||
|
||||
Reference in New Issue
Block a user