Differences
This shows you the differences between two versions of the page.
— |
wiki:scripting_portal:advflowctl [2018/10/14 13:53] (current) Royale Mobian created |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== 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: |