Checking for startswith in array variable

Hi All,

how can I check for a value which startswith specific digit in array variable.
for egs:
array_variable = {“one”,“two”,“three”,“four”,“five”}
so if i need to check if the array_variable has any value which startswith “o”, it should return true (in this mentioned case).
kindly advise.

Thanks!
Deena

You can loop through the array and then for each of the item use startsWith ‘o’

Run this one and see matchString.xaml (7.4 KB)

[if you dont have the activity, goto ‘Manage Packages’ and install “Workflow Manager Activities”]

Hope it helps :slight_smile:

it works, Thanks :wink: @nadim.warsi

1 Like