/
# Operator on Strings
# Operator on Strings
The # operator works on strings, tables and our HL7/X12 objects.
With strings, the # operator is used to get the length or number of characters of a string.
Try out this sample code in the Translator:
local myString = "Hello, World!"
local stringLength = #myString
trace("Length of the string: "..stringLength)
Use the Annotation Window to see the # operator capture the string length.
See related:
, multiple selections available,
Related content
Annotation Windows
Annotation Windows
More like this
String:split()
String:split()
Read with this
# Operator on Lua Tables
# Operator on Lua Tables
More like this
Trimming white space
Trimming white space
Read with this
# Operator on Userdata Objects
# Operator on Userdata Objects
More like this
Create an HL7 File Feeder
Create an HL7 File Feeder
Read with this