If statement issues

I am trying to use and if statement to validate a string value but it is not taking the expected actions.



Should it not be executing the then instead of the else here? What am I missing?

@josh.cusack is invoice_val a String Type data? If So, Can you Check with invoice_val.Trim in the if condition, If spaces are present along with the value it is considered as not equal.

that worked! so there can be hidden spaces at the end of the value at times?

1 Like

@josh.cusack That depends on the data that you have :sweat_smile:

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