only use listings for actual code examples
This commit is contained in:
parent
5b3a5412d4
commit
ce72dc82db
1 changed files with 5 additions and 5 deletions
|
@ -137,9 +137,9 @@
|
|||
#enddef
|
||||
|
||||
#define LOOKUP_INDEX FROM_ARRAY WHERE_KEY WHERE_VALUE SAVE_AS
|
||||
#! Call this to lookup an array element that has a particular key-value pair
|
||||
#! then it saves the index of that element, or
|
||||
#! if the key-value pair is not found it saves the array's length
|
||||
# Call this to lookup an array element that has a particular key-value pair
|
||||
# then it saves the index of that element, or
|
||||
# if the key-value pair is not found it saves the array's length
|
||||
{VARIABLE {SAVE_AS} 0}
|
||||
[while]
|
||||
[variable]
|
||||
|
@ -157,8 +157,8 @@
|
|||
#enddef
|
||||
|
||||
#define LOOKUP_VALUE FROM_ARRAY WHERE_KEY WHERE_VALUE SAVE_KEY DEFAULT SAVE_AS
|
||||
#! Call this to look up an array element that has a particular key-value pair
|
||||
#! then it saves another key from that same element.
|
||||
# Call this to look up an array element that has a particular key-value pair
|
||||
# then it saves another key from that same element.
|
||||
{LOOKUP_INDEX {FROM_ARRAY} {WHERE_KEY} {WHERE_VALUE} {SAVE_AS}}
|
||||
[if]
|
||||
[variable]
|
||||
|
|
Loading…
Add table
Reference in a new issue