[Gambas-user] string operator ==
Benoît Minisini
gambas at ...1...
Wed Nov 10 18:21:10 CET 2010
> There is other similar bug or non-convinient feature.
>
> IF NOT 1 = 2 THEN
> PRINT "This is never printed"
> ENDIF
>
> IF NOT 1 = 1 THEN
> PRINT "This is also never printed"
> ENDIF
>
> IF NOT (1 = 2) THEN
> PRINT "This however works"
> ENDIF
>
> Tested with Gambas 2.21 and with Gambas 3 rev 3281.
> @ Ubuntu 10.04 64bit
> Jussi
>
The priority of NOT is greater than the priority of '='.
Regards,
--
Benoît Minisini
More information about the User
mailing list