A quick lesson on: What is IMP?
#6
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.
Reply


Messages In This Thread
A quick lesson on: What is IMP? - by SMcNeill - 05-02-2022, 12:35 AM
RE: A quick lesson on: What is IMP? - by SMcNeill - 05-09-2022, 02:54 AM
RE: A quick lesson on: What is IMP? - by Dimster - 07-27-2022, 01:42 PM
RE: A quick lesson on: What is IMP? - by SMcNeill - 07-27-2022, 02:32 PM
RE: A quick lesson on: What is IMP? - by Dimster - 07-27-2022, 05:22 PM
RE: A quick lesson on: What is IMP? - by SMcNeill - 07-27-2022, 07:03 PM
RE: A quick lesson on: What is IMP? - by SMcNeill - 07-27-2022, 07:27 PM
RE: A quick lesson on: What is IMP? - by Pete - 07-27-2022, 07:37 PM
RE: A quick lesson on: What is IMP? - by SMcNeill - 07-27-2022, 07:59 PM
RE: A quick lesson on: What is IMP? - by Pete - 07-27-2022, 10:14 PM
RE: A quick lesson on: What is IMP? - by Dimster - 07-28-2022, 12:51 PM
RE: A quick lesson on: What is IMP? - by SMcNeill - 07-28-2022, 04:34 PM
RE: A quick lesson on: What is IMP? - by Dimster - 07-28-2022, 04:53 PM
RE: A quick lesson on: What is IMP? - by JRace - 07-28-2022, 05:38 PM
RE: A quick lesson on: What is IMP? - by JRace - 11-05-2022, 03:50 AM
RE: A quick lesson on: What is IMP? - by vince - 11-10-2022, 06:56 AM



Users browsing this thread: 9 Guest(s)