Creating an If condition

Hello Forum,
Today I want to create a condition which decides the direction of a automation (as usual), the thing is that what I want is basically that if variable "Invoice_Reason = “Venta” or “Inversion” ". Then…

The thing is that i’m using “OR” wrong. I don’t know if it’s the correct operator or i i have to parse something else.

Let me know the solution.
Thank you very much once again.

Try the following

Invoice_Reason.Trim.ToLower.Equals("venta") Or Invoice_Reason.Trim.ToLower.Equals("inversion")


1 Like

A simpler alternative…


1 Like


Try this:

If you’re trying to fetch the exact match with the input text:

Invoice_reason.equals("Venta") or Invoice_reason.equals("Inversion")

If you’re trying to fetch the contains data from the input text:

Invoice_reason.Contains("Venta") or Invoice_reason.Contains("Inversion")