How to compare strings

I have a string that I extract from an excel “Chiapas”
and I want to see if it is equal to several strings

“Chiapas”
“Chihuahua”
“Coahuila”

if it is equal to one of those you must do something

I have this but it doesn’t work as I hope

Can you check the value of StrEstado thanks

2 Likes

image

this is my StrEstado

Can you put trim on it.i assumed it has space on it thanks

3 Likes

indeed I had blank spaces I solved it like that

StrEstado.trim

thanks

1 Like

Yey great!

cheers

2 Likes