Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »

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:

  • No labels