Text VS String - Equal Case insensitive check with different results

are you using strings? if not try:

TEXT–>toString–>toUpper then compare strings with === (exactly equal)