_If_ one is using a firmware which supports that.
Grbl, which many of the 3D printer firmwares are based on, does not (and no variables, or loops, or branching).
Grbl, which many of the 3D printer firmwares are based on, does not (and no variables, or loops, or branching).
So suppose I attached an extruder to a Haas mill or something...