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.

...

8

.

1.8The string parameter now accepts tuples and lists. 

Panel
titleSyntax

lastIndexOf(string, substring)

  • Parameters

String string , Tuple, or List object - The string object to search through.

Changed_in
FunctionMargintrue
Version8.1.8

The string parameter now accepts tuples and lists. 


String substring - The string to search for.

  • Results

on 8.1.8 release, make the following changes:

  • Move this page under the "Logic" page
  • Add

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

    Editor_notes

    the

    following after the "

    string

    " parameter:
    Changed_in
    FunctionMargintrue
    Version


    Panel
    titleExamples


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


    Code Block
    languageactionscript3
    titleCode Snippet
    lastIndexOf("Test", "") //Returns 4.


    Code Block
    languageactionscript3
    titleCode Snippet
    lastIndexOf("Dysfunctional", "fun") //Returns 3.


    Code Block
    languageactionscript3
    titleCode Snippet
    lastIndexOf("Dysfunctional", "marble") //Returns -1.


    Code Block
    languageactionscript3
    titleCode Snippet
    lastIndexOf("banana", "n") //Returns 4.


    ...