Global switch formula in klwp


Im very new to klwp and i dont know the true power it, so can someone explain me how can i learn to use global switch formula? Or what syntax i need to use? Cuz theres no tutorial it just say it has to return to b.