flux.on("inputChange", (e) => {
if (e.control_name === "Switch Position") {
if (e.value) {
flux.currentSymbol = "A";
flux.simulationModel = {type: "switch", state: true};
} else {
flux.currentSymbol = "B";
flux.simulationModel = {type: "switch", state: false};
}
}
});