don't understand, can't see the forest from the trees. can some kindly help me.thanks.
def total = 7;
def items = 0;
plot scan = if items < total
then add 1 to items
else double.nan;
can you describe in words, what you want to have happen?
...plot scan = if items < total
this compares 2 constants, 0 and 7.
it will always be true.
line #4 will always be processed, but is incorrect.
...then add 1 to items
this if-then section will always be processed. but it is invalid , so the program crashes.
'add' isn't a valid arithmetic opeator.
you can't add a number to a constant.
---------
i have a feeling you want to add 1 to a variable when something happens. to do this you need to read from a variable in the past. you do...