I have some conditions (cases) for actions when an element is clicked.
How do I do something like this?
- If case A is true then do some actions.
- If case B is true then do some other actions.
- Regardless of any case do some more other action.
Can I pack that in one event?