Also, you can use “Switch” node from Math section. Easier than custom node and no any Switch Parametrs