Switch

Use the first value where the associated expression is valid.

Usage:

Switch( Expr1, Value1, Expr2, Value2,... )

Returns:

Value1 or Value2

Examples:

switch(false,3,true,5)     // returns 5
switch((1=2),3,(1<2),5)     // returns 5
This application uses cookies to allow login. By continuing to use this application, you agree to the use of cookies.


Help - Switch

Loading application