Without using If for each condition or switch activity - need to check condition

I am having string of array[1] report number : 132344556
[2] date :25/06/2021
Now I am iterating using for each - item in string of array
item.contains(“reportnumber”) means I need to perform some action
item.contains(“date”) means I need to perform some action

So without using If for each condition or switch activity …How I can I handle this?

@vikaram_viki

check below for your reference

Reference

Hope this may help you

Thanks

Why are you trying to avoid For Each and If/Switch? I mean, these are the right way to do things like this.