Got it
// M11Q1 + M11Q0 solved 30dec2021
function setCoolant(coolant) {
var coolantCodes = getCoolantCodes(coolant);
if (Array.isArray(coolantCodes)) {
if (singleLineCoolant) {
writeBlock(coolantCodes.join(getWordSeparator()));
} else {
for (var c in coolantCodes) {
if ((tool.coolant == COOLANT_AIR_THROUGH_TOOL) && (coolant != COOLANT_OFF)) {
writeBlock(coolantCodes[c], "Q1");
}
if ((tool.coolant == COOLANT_AIR_THROUGH_TOOL) && (coolant == COOLANT_OFF)) {
writeBlock(coolantCodes[c], "Q0");
} else {
if (tool.coolant != COOLANT_AIR_THROUGH_TOOL) {
writeBlock(coolantCodes[c]);
}
}
//writeBlock(coolantCodes[c]); /*--originally just this in for (var c in coolantCodes) {}*/
}
}
return undefined;
}
return coolantCodes;
}
----------
My postprocessor has a number of other modifications like G28 home even if safe retracts has been set to [Clearance Height] and there's delayed M63 aux2 off onClose so **caution**