Eas (Easy Application Script) by Molaskes

Syntax Guide:27. If-Else Values

{condition}\s*\?\?\s*{if-value}\s*\\\\\s*{else-value}
‌ For simple if-else value assignments, you can save code lines and variables. Instead of ?a v b \ v c / you can also write v a??b\\c and you can use this ternary operator‌ even within other lines: "A baby ";(male??"boy"\\"girl");" is born." Mind that although you can chain ternaries, each ternary if in the chain is a full if-condition, not a condition-chain-supported else-if. a=b??c\\d??e\\f for example uses d as the if-condition, not "a=d" as an else-if would.
Eas:
a b??c\\d
x a=b??c\\d??e\\f
JS:
a=b?c:d
x=a==b?c:d?e:f
27. If-Else Values
D Download Eas 4B
C Contact
Esc Search / Table of Contents