<font face="Arial, Verdana">In addition to the already existing commands you can add the command {IF NEWTOOL =} </font>as simplify
Example:
{IF NEWTOOL=0} M104 S165 T1; set T1 inactive extruder to 165 C<br style="color: rgb(20, 24, 35); font-family: helvetica, arial, sans-serif; line-height: 16.08px; background-color: rgb(246, 247, 248);">{IF NEWTOOL=0} M109 T0 <font color="#141823" face="helvetica, arial, sans-serif">S{TEMP0}</font>; Set T0 new active extruder to TEMP0
or
{IF NEWTOOL=1} M109 T1 S{TEMP1}; set T1<br style="color: rgb(20, 24, 35); font-family: helvetica, arial, sans-serif; line-height: 16.08px; background-color: rgb(246, 247, 248);">{IF NEWTOOL=1} M104 S165 T0; Cool T0 to 165
or
{IF NEWTOOL=0} M280 P0 S90<br style="color: rgb(20, 24, 35); font-family: helvetica, arial, sans-serif; line-height: 16.08px; background-color: rgb(246, 247, 248);">{IF NEWTOOL=1} M280 P0 S180
Thank's