Container
Text
Image
Icon
Button
Local State
Text Input
Date Picker
Conditional Logic
Conditional Switch Logic
Sheet
Tabbed Pager
Data Loader
Repeating Item
Countdown Timer
Data Transformer
Date Elements
Paging Data Loader
Rich Text
The Conditional Switch Logic Component allows you to define multiple conditions and branch your app's behavior accordingly. Unlike simple if/then logic, this component enables switching between various predefined outcomes based on different conditions. It is useful for handling scenarios where two possible outcomes are needed.
If/Then/Else Logic
Streamlined Decision-Making
Default Fallback Option
1. Condition
2. Content A
3. Content B
4. Show in preview
Prioritise Conditions:Arrange your conditions in order of importance, as the first true condition will trigger its corresponding outcome.
Use a Fallback Condition:Always define a fallback (default) case to ensure your app behaves predictably if none of the conditions match.
Test All Paths:Test each possible condition and outcome to make sure all paths are functioning as expected, especially if complex logic is involved.