TeleFlow BasicScript Pos

TeleFlow BasicScript Pos

From TeleFlow

Jump to: navigation, search

Returns the indexed position of a substring in a string, or –1 if the substring is not part of a string.

Syntax

POS(string,substring)
string: a string value or variable.
substring: the substring to search for in string.


Related Steps

Image:Iv_517.gif BasicScript

Examples

BasicScript code

Result

 

@A = "HELLO WORLD"

@B = POS(@A,"WORLD")

PRINT "@B"

6

 

 

@A = "HELLO WORLD"

@B = POS(@A,"AGAIN")

PRINT "@B"

-1