Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
heading0
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse


Syntax

indexOf(str1, str2)

Package


Alias


Pkg Usage



...

Code Block
languagejs
wret = indexOf("This will return ?", "This");
print("Return " + wret);

Print Return 0


Note

If the first occurrence of str2 is the first caracter of str1, indexOf( ) returns 0.
If you need to find str2 multiple times, use substring( ) routine.


See also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "string_routine" and space = currentSpace ( )
labelsarray_routines