cancel
Showing results for 
Search instead for 
Did you mean: 

connecting functions in the expression editor

matthias_prller
Participant
0 Kudos

Hi everybody,

what's wrong with this expression:


If ( stringindexof( Local.string , Local.search_string ) == 0 , true , false)

I get an "Invalid variable in expression If" error.

Isn't it possible to connect functions together?

or the more spectific question: How is it possible to get true or false if a string contains another one?

Regards,

Matthias

Accepted Solutions (1)

Accepted Solutions (1)

former_member201407
Participant
0 Kudos

Just take a closer look at the difference between the built-in functions : If and if(boolean, value1, value2)

So when you are using the boolean expression the clause will be if, not If (small 'i', instead of capital 'I')

Regards

Som

Answers (2)

Answers (2)

Former Member
0 Kudos

Matthias Pröller,

I guess you have used small letters for if syntax.. Error is caused by the space between if and (

ensure it looks like if(.

BR,

SB

matthias_prller
Participant
0 Kudos

Thank you, it was something of all the solutions.

I tried with spaces and without but not with a small "i".

Regards Matthias

Former Member
0 Kudos

Hi

In the Conditional Action Block, you can map input1 to

stringindexof( Local.string , Local.search_string ).

If it will retun 0, means false. If it will retun 1, means true.