User Manual

GETTING STARTED


OTHER EDITIONS


LAUNCHERS


MODULES


PLATFORM


APPENDIX


TUTORIALS & HELPFUL TRICKS


STRATEGIC PARTNER LINKS

Sepasoft - MES Modules
Cirrus Link - MQTT Modules

RESOURCES

Inductive University
Ignition Demo Project
Knowledge Base Articles
Forum
IA Support

ALL USER MANUAL VERSIONS

Ignition 8.1. Offline Version (04/2021)
Ignition 8 Online Version
Ignition 7.9 Online Version
Ignition 7.8 Online Version

Deprecated Pages

SDK Documentation

Employees

Sign In

Versions Compared

Key

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

...

The string parameter now accepts tuples and lists. 

Panel
titleSyntax

indexOf(string, substring)

  • Parameters

String string or LIst object - The string to search through.

Changed_in
FunctionMargintrue
Version8.1.8

The object parameter now accepts tuples and lists. 


String substring - The string to search for.

  • Results
on 8.1

String - The index where the substring was first found in the string.

Editor_notes

.

8 release, make the following changes:
  • Move this page under the "Logic" page
  • Add the following after the "string" parameter:

    Changed_in
    FunctionMargintrue
    Version8.1.8


    Panel
    titleExamples


    Code Block
    languageactionscript3
    titleCode Snippet
    indexOf("Hamburger", "urge") //Returns 4.


    Code Block
    languageactionscript3
    titleCode Snippet
    indexOf("Test", "") //returns 0


    Code Block
    languageactionscript3
    titleCode Snippet
    indexOf("Dysfunctional", "fun") //returns 3


    Code Block
    languageactionscript3
    titleCode Snippet
    indexOf("Dysfunctional", "marble") //returns -1


    Code Block
    languageactionscript3
    titleCode Snippet
    indexOf("banana", "n") //returns 2


    ...