Execution of one command from another using Switch

I have swing extruders and need to activate servo to different angles going to T1 and to T0. So, I need to execute different command sequences with T1 and T0 commands. Most slicers do not have forking (or “if” capability. You only can write single script for switching tools.
I wrote a simple switch in config file. According to Documentation :
This allows you to do one of the following :
Make a G-code control a GPIO pin
Make a GPIO pin cause a G-code to be executed
Make a GPIO pin control another GPIO pin
Make a G-code cause another G-code to be executed

it should be possible, but the following script does not work. Any Suggestions?

extruder switch module
switch.extruder_sw.enable true #enable this module
switch.extruder_sw.input_on_command T1 # command that will turn to Hotend 1
switch.extruder_sw.input_off_command T0 # turn to hotend 0
switch.extruder_sw.output_on_command G91 G0Z1 M282 S2.8 G4 S1 G0 X0Y0F3000 G0Z-1F400 M283 G4S1 M90 #command sequence to T1
switch.extruder_sw.output_off_command G91 G0Z1 M282 S11.6 G4 S1 G0 X0Y0F3000 G0Z-1F400 M283 G4S1 M90 #command sequence to T0

Imported from wikidot

The switch modules only reads “M” codes, not “T” codes.