Page last modified 13:36, 11 Aug 2015 by juhako

.lastIndexOf()

    Table of contents

    Version as of 07:36, 27 Jun 2022

    to this version.

    Return to Version archive.

    View current version

    Description of the method

     

    Description: .lastIndexOf() method returns the last position of string or character from a string. The string or character to be searched for is given as parameter. If nothign is found "-1" will be returned.
    Available for: string
    Parameters: string
    Return type: integer

    Example

     

    Context: H
    OCL: self.
    Description: The example rule executes

     

    The XML snippet below would pass this check.

    <Id>   IdContent   </Id>

    The other snippet below however would not pass this check.

    <Id>Id Content</Id>

     

    Attached you can find example schema and files which you can use for testing.

    Menu