YEngine advflowctl

Provide advanced flow-control statements similar to other programming languages.

Enabled by: yoption advflowctl;

Keywords:
break
case
constant
continue
switch
:
&&&
|||

break : valid in do, for, foreach, switch, while continue : valid in do, for, foreach, while

&&& : provides short-circuiting AND operation

||| : provides short-circuiting OR operation

constant usage as follows:

switch usage as follows :

the switch statement is also valid for string expressions, for example:

QR Code
QR Code wiki:scripting_portal:advflowctl (generated for current page)