If condition not giving correct answer (for string variables)

studio

#1

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


#2

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


#3

Trim works! Thank you so much!


#4

cool :slight_smile: