Skip to main content

Substring

Anatomy

<substr var="var" offset="int" length="(end of value)" type="chars">
string
</substr>

Description: SUBSTR returns part of a value, isolated by an offset and a length.

If the offset is negative it will start that many bytes or characters from the end of the value. If the length is omitted, every byte or character from the offset until the end of the value will be returned. If the length is negative then it will stop that many bytes or characters from the end of the value.

Attributes

NameTypeDescriptionDefined By
varvarResult variable name substr
offsetintOffset substr
lengthintLength substr
typetypeMeasurement type substr

Results:

BindingTypePredicate
varstringN/A

Examples

Example

<output>
<substr offset="6" length="2">Name: iXML</substr>
</output>

<!-- iX -->