/
# Operator on Lua Tables

# Operator on Lua Tables

The # Operator works on strings, tables and our HL7/X12 objects.

With tables, the # operator is used to get the number of elements in a table (when the table is treated like an array/list.)

We can see a good example of using the # operator in Lua table as list.

If you want to explore more on how the # operator works, checkout:

 

Related content

# Operator on Strings
# Operator on Strings
More like this
Lua tables as dictionaries
Lua tables as dictionaries
More like this
FIL Library
Read with this
# Operator on Userdata Objects
# Operator on Userdata Objects
More like this
String:split()
String:split()
Read with this
Operators
More like this