07-27-2022, 02:32 PM
It works, but you may not get the result you're expecting.
Basically, A IMP B is the exact same as NOT A OR B.
In your example case, A = 10, B = 10.
NOT A OR B
NOT 10 OR 10
-11 OR 10
-9
10 IMP 10 = -9, which is TRUE.
Remember, in BASIC, anything non-zero is TRUE by default.
Basically, A IMP B is the exact same as NOT A OR B.
In your example case, A = 10, B = 10.
NOT A OR B
NOT 10 OR 10
-11 OR 10
-9
10 IMP 10 = -9, which is TRUE.
Remember, in BASIC, anything non-zero is TRUE by default.