Tinderbox v8 Icon


Operator Type: 

Operator Scope of Action: 

Operator Purpose: 

Operator First Added: 

Operator Altered: 

 Function   [other Function type actions]

 List   [operators of similar scope]

 Set & List operations   [other Set & List operations operators]




The command .lookup() behaves like list.at() but only for look-up tables. For look-up tables .lookup() is preferred to .at() for clarity, and to avoid ambiguity when the argument is numeric. As with .at(), N is the zero-based offset in the list of values.

$MyString = $MyString.at(5); ← the sixth element of the list (don't forget N is counted from zero).

$MyString = $MyString.lookup(5) ← the lookup result for key value 5.