Operator Scope of Action:
Operator First Added:
Operator Last Altered:
This returns the Number of characters in a string value. The returned number can be coerced to a string. Examples:
$MyString = "hello world"; $MyNumber = $MyString.size; $MyStringA = $MyString.size;
The value of $MyNumber will be the number 11, $MyStringA will be the string "11".
This operator can also be used on other attribute data types that are string-like, URL, File, etc.
The 'size' of $Text is pre-computed and accessed via the read-only system attribute $TextLength.
More detail on how character counts are made.