# 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 pages