What is different?

jims

Senior Member
Using this example...I can't figure out why inc with a "max" doesn't work:

These work OK:
let b2 = b2
inc b2
let b2 = b2 + 1
let b2 = b2 + 1 max 10

This doesn't work: Gives a "syntax error".
inc b2 max 10

I'm running PE6 V 6.0.8.11

Any help? Thank you JimS
 

johnlong

Senior Member
Hi jms
just dropped the following into PE6 and workked
Code:
main:
b2=0
do
	inc b2
	let b2=b2 max 10
loop until b2=10
goto main
regards john
 

jims

Senior Member
Just downloaded PE6 V 6.0.9.1 and it still doesn't work.
johnlong..It seems to be this statement that it doesn't like; gives a syntax error....(inc b2 max 10). Jims
 

jims

Senior Member
This is not allowed syntax. "inc" takes only a variable, not an expression.
Thank you ibenson...
I asumed (incorrectly) that since (let b2 = b2 + 1), works the same as (inc b2)...(inc b2 max 10) would work. Jims
 
Top