What is correct syntax to set something to a var in a macro ? I want to use an if statement to check a variable to see if a tool should be probed or not Tried for an hour - given up !
In earlier versions you could read and write the ivars array, e.g. ivars[10] = 1.234; double myvar = ivars[10];
The new Getvar and Setvar functions doing the same, setting the members of the ivars array which are the variables you can code with the # suffix in g-code.
it was just to skip my probing section in my m6 macro. it just doesnt resume after the } (doesnt run the code after ) i havnt worked out why yet. maybe adding else will work !