Default value for "Switch" function

Set a default value in a ChronoForms Switch function.

Overview

The issue occurs when using an incorrect syntax for the default case in the Switch function.
Replace the 'default:' label with '*:' to define the default action that executes when no other cases match.

Answered
Connectivity v6
we webbusteruk 06 Feb, 2019
What do we put in the code for 'default' when using the Switch function?
1: do this
2: do that
default: do this and that
Above doesn't seem to work.
he healyhatman 06 Feb, 2019
Answer
1 Likes
Lucky you I asked this just the other day.
*:Do the other thing if it's not 1 or 2
This topic is locked and no more replies can be posted.