Formula for if condition when both variables hv the same output

hi, anyone know a formula such tht my if condition will run only if both variables(customername and current customername) have the same output?

Hi @Pyx ,

Try this.

customername.ToString.ToLower.Trim.Equals(currentcustomername.ToString.ToLower.Trim)

hi, it does seem to work:(

customername.ToString.ToLower.Trim.Equals(currentcustomername.ToString.ToLower.Trim)

add trim and check.

Hi,

Your condition basically seems correct.
If you still have a problem, can you try to output content of each variable using WriteLine activity or set Breakpoint at IF activity then check content of them at Locals panel when workflow stops?

Regards,