[Gambas-user] "=" versus "==" in IF statement

roberto roberto.premoli at tiscali.it
Thu Apr 2 16:01:17 CEST 2020


Hello,

when I do a IF statement

IF A = 1 then

   B=2

EndIf


it give me the same result of

IF A == 1 then

   B=2

EndIf


 From C language, i know that "==" is for TEST of value and "=" is for 
ASSIGNEMENT of value

Does GAMBAS accept both "=" and "==" in case of IF statement?



More information about the User mailing list