rocinantealpha

reference / tables

get

The value of a name in a table, or an empty one (0, empty text) when it has none: get counts "cat".

counts = tableput counts "cat" 2print (get counts "cat")print (get counts "dog")

It prints

2
0

How to write it

get table key

Gives a value.

Related