|There's more than one way to do things|
Answer: How do I compare two strings?
As an addendum to turnstep's fine post: Another useful test is: ne ... as in:
Just as: == tests equality between two numbers,
!= tests inequality for numbers and
eq tests strings for equality as
ne tests strings for inequality.
I often find it useful to test
to verify that a string has a value even if it's == 0.