Skip to content

locateSubstringPosition (Math & String functions)

Compatible with:
  • Purpose
  • Returns the position of the first occurrence of the <substring> within the <string> starting from the <startingPosition> within all the occurrences of the <substring>. This command performs a case-sensitive match when searching for <substring>. It returns -1, if the <substring> is not present in the <string>.
  • Syntax
  • locateSubstringPosition(string||substring||startingPosition,  variableName)
  • Target
  • string||substring||startingPosition (Mandatory)
  • Value
  • variableName (ToHoldPositionOfFirstOccurrenceOfSubstring )(Mandatory)
  • Return Value
  • It returns -1, if the <substring> is not present within the <string>
  • Condition Error/Exception Message
    Improper Syntax for Target field Invalid Format
    Invalid Value Invalid value in the target field

 

Feedback and Knowledge Base