02-06-2022, 10:37 PM
(This post was last modified: 02-06-2022, 10:38 PM by worcestersource.
Edit Reason: Clarity of keywords
)
Actually, I've been doing some refactoring and gave the IF...THEN IF...THEN a whirl instead of using ANDs and they are about 10 bytes cheaper.
So instead of doing this:
Do this instead:
If have a lot of ANDs in my code! I'm sure I could save quite a lot of memory here!
Steve
P.S. Would it be an idea to set up a tips and tricks bit of your forum? Such things could help us write faster, smaller code, even if it were not the most logical to read back.
So instead of doing this:
Code:
if eventA = 0 and eventB = 0 then
Do this instead:
Code:
if eventA = 0 then if eventB = 0 then
If have a lot of ANDs in my code! I'm sure I could save quite a lot of memory here!
Steve
P.S. Would it be an idea to set up a tips and tricks bit of your forum? Such things could help us write faster, smaller code, even if it were not the most logical to read back.