It feels a bit stupid to ask such a thing, but even thoug using the plotscript dictionary I fail to figure out how to increase a (global) variable.
The compiler tells me that + is not allwed inside a script, and suggested using add, but still the script is not acepted.
I placed the variable under the include part, I hope that's okay.
Code:
global variable (1,stepcounter)
...
plotscript,each step,begin
# global variable can be read and set in any script
stepcounter add 1
show value (stepcounter)
end
...
plotscript,each step,begin
# global variable can be read and set in any script
stepcounter add 1
show value (stepcounter)
end
Thanks for you help!



