OnPanelSwitchTriggers a script to run when a panel control changes panels. This can happen in a tab control, for example, when a user clicks an inactive tab panel or when a script changes the focus to an object on a different tab panel.You can use the Exit Script script step within the triggered script to return True or False.