in reply to Re: == and != don't work as expected
in thread == and != don't work as expected
The numeric value of the string "two" is zero (0)
The numeric value of the string "one" is zero (0)
Comparing the numeric values of the two strings, "two" and "one", shows they have the same numeric value. This is identical to the numeric value of "potato" ( and even of "potatoe" ), "Zambia", "infinity" and "TomDLux".
If you want to compare the strings, use '=='. If you want to use numeric comparisons on strings, make sure they contain numbers.
--
TTTATCGGTCGTTATATAGATGTTTGCA
|
|---|