state.status string?
-
I am writing a macro which it is supposed to do different things if the machine is printing or idle . I am trying to query the value of state.status as a string ( Idle, Processing) .
Usingecho #state.status
returns 4 if Idle (or 10 if Processing) which I expected.
Usingecho state.status
returns the same , which is not what I was expecting.
I'm trying to do something like thisif state.status == Idle
as opposed toif state.status == 4
(this will work just fine but there will be another 4 letter status value in future?) .
What is the correct way to achieve this?It might be obvious for most of the people here , I appologise, I have no engineeering or programming background, and I spent hours looking for a solution with no result.
-
This is a bug in 3.01beta2. It is fixed in the internal builds at https://www.dropbox.com/sh/3azy1njy3ayjsbp/AACquxr2m00eV568RZg5QG5wa?dl=0.