I would like to use Switch and case syntax, like as Javascript.
(for clear source code visibility)
switch (expr) {
case 'One':
Value=1;
break;
case 'Two':
Value=2;
break;
default:
Value="0";
}
Is there Switch syntax in Zscript?
Or, I have a only way to write the nest of [IF]?