-
Notifications
You must be signed in to change notification settings - Fork 1
IndexOf Operator
Martin Danielsson edited this page Dec 16, 2024
·
2 revisions
Returns the index of a substring. Much like the IndexOf
method of a string.
What | Type |
---|---|
Syntax | IndexOf(a, b) |
a |
string |
b |
string |
Return type | int |
<CustomOperator name="RemoveArrow" paramCount="1" returnType="string">
<Parameters>
<Parameter name="input" type="string" />
</Parameters>
<Switch>
<Case condition='Contains(%input, " -> ")'>Trim(Substring(%input, Add(IndexOf(%input, "->"), 2), Length(%input)))</Case>
<Otherwise>%input</Otherwise>
</Switch>
</CustomOperator>