How to use [default]

The reference page of default has its arguments, constraints and declaration.

[switch] can only contain two types of children nodes; [case] and [default]. The [default] node will be evaluated if none of the [case] node’s values are matching the evaluated value of your [switch]. Try evaluating the following in your “Eval” component to understand this.

.val:fooXX
.result
switch:x:@.val

   case:bar
      set-value:x:@.result
         .:Oops

   case:foo
      set-value:x:@.result
         .:Oops2.0

   default
      set-value:x:@.result
         .:Success!