Get index of variable from array

Hi all

I am trying to get the index of my text variable using the method shown below.

I also tried array.contains(“myvariable”), but it seems my variable and text in the array do not match.

Any suggestions?

image

1 Like

@ChrisPals Do not use double quotes when using a Variable :sweat_smile:

4 Likes

@ChrisPals

As @supermanPunch said, don’t mention variable name with double quotes.

If you are passing value directly then you need to mention with double quotes else it’s not needed.

2 Likes

Hi @supermanPunch and @lakshman

Thank you for the answers!

I think I need the dummy version of that, where should i remove the doubles quotes?

2 Likes

ah ok

I get it.

Thanks a lot!

2 Likes

@ChrisPals

In that assign activity. Array.IndexOf blah blah…

2 Likes

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.