Aug-12-2019, 06:29 PM
Hi, all.
I am a new learner here and have a question regarding the "==" operator, I couldn't find answer in Google, thus, I post here.
Why:
using "==" between two "print" functions will always return as TRUE (regardless the content), and using "!=" will always return as FALSE, but either "<=" or ">=" will result as errors.
On the other hand using "==" inside a "print" function will work as normal.
For example:
I am a new learner here and have a question regarding the "==" operator, I couldn't find answer in Google, thus, I post here.
Why:
using "==" between two "print" functions will always return as TRUE (regardless the content), and using "!=" will always return as FALSE, but either "<=" or ">=" will result as errors.
On the other hand using "==" inside a "print" function will work as normal.
For example:
print(1) == print(2) 1 2 TRUE
print(1) != print(2) 1 2 FALSE
print(1==2) FALSEThanks!