Error 1 and 2 with variables

Ran through the troubleshooting steps here. I dont think its any of those. It has to do with trying to use variables. I tried to follow the macro guide here and I am not sure where I am going wrong. I have a Shapeoko 5 Pro. If I just enter in the number and delete the variable it works just fine.

Trying to run this:

%hello = 10
G91 G0 X[%hello]

outputs this in console:

G91 G0 X[%hello]

Bad number format

What am I doing wrong here?

% defines the variable - using it you just add the name.

So it should be


%hello = 10
G91 G0 X[hello]