Check if a specific tool is selected and set it to standby
-
var.temp0 evaluates to tools[0].active which points to an array containing elements (of I guess extruders) with the temperature for respective extruder (normally 0).
So if you write like this instead:
var temp0 = 0 if #tools[0].active != 0 set var.temp0 = {tools[0].active[0]} ;end if
I don't know if that answers your question some?