IndexOf - 6.3

Talend Data Mapper User Guide

EnrichVersion
6.3
EnrichProdName
Talend Big Data Platform
Talend Data Fabric
Talend Data Management Platform
Talend Data Services Platform
Talend MDM Platform
Talend Real-Time Big Data Platform
task
Design and Development
EnrichPlatform
Talend Studio

Name

IndexOf

Purpose

Return the index value of a substring in a string.

Description

Return the one-based index of the Compare String within the specified String. For example, if the String is abcd, and the Compare String is cd, 3 is returns. If the Compare String is not found, then -1 is returned.

Return Type

Integer

Argument

String (String)

The Expression to evaluate.

Argument

Compare String (String)

The value to return if the Condition is true.