While 'Let' statement is not required in CGB, I find it helps me to focus. I see the 'Let' statement and understand that it is a value assignment, as opposed to a test of equality. It is perhaps a hangover from my Delphi (Object Pascal) time where the symbol for a test of equality was '=' and the symbol for a value assignment was ':='.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Is it possible to check for a range of values using something like:
Assuming it is, would I need to encase my test statements in brackets as the above example, or the example below:
Or would I need to do the maths prior to the 'If...Then' as this:
Last edit: mkstevo 2016-09-29
Always play safe.
and, no need for LET statements.
Thanks for the reply.
While 'Let' statement is not required in CGB, I find it helps me to focus. I see the 'Let' statement and understand that it is a value assignment, as opposed to a test of equality. It is perhaps a hangover from my Delphi (Object Pascal) time where the symbol for a test of equality was '=' and the symbol for a value assignment was ':='.