Checking Conditions Inside For Each row Data Table

Hi All,

I am checking a condition inside DataTable using If statement but at run time the bot skips the condition and goes to another workflow. Its skipping all the conditions.

image

The condition is as below which I should check

CurrentRow(“ITEM”).ToString.Contains(“Services”)

Hi @dutta.marina ,

As you mentioned it specifically as Run Time, is it observed differently when checked with Debug ?

You could debug or Perform a Step Into and compare each value in the Debug Panel so that we can confirm on what is actually happening with the data comparison.

You shouldn’t be nesting IFs like that. It gets messy and confusing. Use the Else If activity.