Pardon me if this has been discussed before or is on the wish list (a quick search was not good enough for me to find one.)
Most other languages with which I am familiar (including BASICs) allow statements such as:
IF {variable/constant/expression} then ... do something etc. but PICAXE Basic seems to require an expression.
A false would simply be a ZERO (or empty string "") and true is anything else.
If I understand correctly; if a false preceeds an AND the interpreter can quit with the false behavior otherwise continue evaluation. Similarly a true is followed by an OR will quit with the TRUE behavior otherwise continue. Finally if the expression ends the final value determines the behavior.
What I don't get is why a single value can't be parsed as end of expression.
Yes, there may even be times when I want to have the IF expressed programaticaly but only want to test one condition and therefor use a constant as the temporary argument.
Bert
Most other languages with which I am familiar (including BASICs) allow statements such as:
IF {variable/constant/expression} then ... do something etc. but PICAXE Basic seems to require an expression.
A false would simply be a ZERO (or empty string "") and true is anything else.
If I understand correctly; if a false preceeds an AND the interpreter can quit with the false behavior otherwise continue evaluation. Similarly a true is followed by an OR will quit with the TRUE behavior otherwise continue. Finally if the expression ends the final value determines the behavior.
What I don't get is why a single value can't be parsed as end of expression.
Yes, there may even be times when I want to have the IF expressed programaticaly but only want to test one condition and therefor use a constant as the temporary argument.
Bert