06-05-2003, 06:58 AM
No, you'll save more space.
THEN IF takes 23sec, AND takes 45sec. A 2x difference.
Code:
CLS
t1# = TIMER
FOR I# = 1 TO 2000000
IF a% = 1 AND b% = 1 THEN c% = 0
NEXT I#
t2# = TIMER - t1#
PRINT t2#
'with THEN IF: 3.30s
'with AND: 3.52s
'Just the loop: 3.07s
THEN IF takes 23sec, AND takes 45sec. A 2x difference.
Peace cannot be obtained without war. Why? If there is already peace, it is unnecessary for war. If there is no peace, there is already war."
Visit www.neobasic.net to see rubbish in all its finest.
Visit www.neobasic.net to see rubbish in all its finest.