Switch

Modified on Wed, 22 Jun 2022 at 10:27 AM

Switch


Switch is a logic component that can take both a call and a value, and then reroute to different functionality depending on the value.


Example:



In this application, a button click opens a dialog. The dialog has two buttonValues: Cancel and Ok. When the user triggers an onButtonClick event, the event and buttonLabel are transported to the Switch Component. Here the Switch Component will trigger one response if the buttonLabel was "Cancel" and a different response if the buttonLabel was "Ok."

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article