IlanMS Posted July 25, 2021 Share Posted July 25, 2021 (edited) Letter duos צ/ץ, מ/ם, נ/ן, כ/ך yield wrong TRUE/FALSE values when compared. Look at the code. The duos do have meaning, but that's beside the point. I get wrong values half of the time. I tried to change the script encoding to UTF8, ANSI, UTF-BOM, still fail. $c = "צ" if $c = 'ץ' then MsgBox (0, "ץ", $c) else MsgBox (0, "צ", $c) EndIf ;Wrong $c = "ץ" if $c = 'ץ' then MsgBox (0, "ץ", $c) else MsgBox (0, "צ", $c) EndIf ;Right if $c = 'צ' then MsgBox (0, "צ", $c) else MsgBox (0, "ץ", $c) EndIf ;Wrong again. The 1st comparison always generate TRUE regardless of letter from the duo צ/ץ ;Same problem with - מ/ם, נ/ן, כ/ך Edited July 25, 2021 by IlanMS Adding encoding attempts Link to comment Share on other sites More sharing options...
Solution pseakins Posted July 25, 2021 Solution Share Posted July 25, 2021 (edited) I am not sure exactly why but it may work better if you use if $c == 'ץ' in your expression. Double equals "==" is used for case sensitive comparisons and may be required here. Edited July 25, 2021 by pseakins original response was incorrect IlanMS 1 Phil Seakins Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now