If then in a calculation
Posted: Sat May 04, 2024 1:48 pm
Hi,
I am a bit puzzled if this is possible or not, in the help for calculations it shows >, <, >= and so on but I cannot figure out how to use them.
I would like to be able to do simple things like
xyx = xyz + 1
if xyz > 10 then xyz = 0
So far I have had to do the addition and then use a decision which seems very cumbersome.
Inc and Dec would be a nice feature to add as well to make things tidier.
In a different program I can use
Inc xyz to increment by 1
or
Inc xyz,10 to increment it in steps of 10
Regards,
Bob
I am a bit puzzled if this is possible or not, in the help for calculations it shows >, <, >= and so on but I cannot figure out how to use them.
I would like to be able to do simple things like
xyx = xyz + 1
if xyz > 10 then xyz = 0
So far I have had to do the addition and then use a decision which seems very cumbersome.
Inc and Dec would be a nice feature to add as well to make things tidier.
In a different program I can use
Inc xyz to increment by 1
or
Inc xyz,10 to increment it in steps of 10
Regards,
Bob