If condition not giving correct answer (for string variables)

Hi, I’m using an if condition which helps me identify if my (str var) email subject = (str var) subject, and even though they are indeed the same, it keeps going to “else” instead of “then”


image

HI @inyourgravity,

ya both the string having same value but in any of the string having space after that so

1.TRIM
or
2.Contains

emaiSubject.Trim=subject.Trim
or
emaiSubject.Contains(subject)

Regards,
Arivu

1 Like

Trim works! Thank you so much!

cool :slight_smile: