Jael’s switch directive is similar to a Dart switch statement. It takes a value as input, and evaluates an infinite number of case tags, only evaluating the first whose value matches the one in question. A default tag can be provided as a fallback.

    1. <switch value=account.isDisabled>
    2. <case value=true>
    3. Good riddance!
    4. </case>
    5. <case value=false>
    6. You are in good standing.
    7. </case>
    8. <default>
    9. Weird...
    10. </default>
    11. </switch>