Eas (Easy Application Script) by Molaskes

Syntax Guide:25. Condition Chains

last left side and comparison reapply reset: ?
‌ A chain of logically linked conditions can be written in a shorter form, as the last left side and comparison type are re-applied if omitted:
Eas:
a=1|>5,<=10
a#2,3,8
a=b|c|d=e|f
a<32|#195,196
JS:
a==1||a>5&&a<=10
a!=2&&a!=3&&a!=8
a==b||a==c||d==e||d==f
a<32||a!=195&&a!=196
‌ To reset this behavior, start the next term with a question mark:
Eas:
a=b|c|d
a=b|c|?d
JS:
a==b||a==c||a==d
a==b||a==c||d
‌ An opening parentheses directly after a Boolean logical operator also resets the condition:
a=b,(c=d|e)  =  a=b,?(c=d|e)
    a=b,(c)  =  a=b,?c
‌ If a comparison follows the question mark, there is no reset, however.
Eas:
a=b|c|?=d
a=b|c|?<d
JS:
a==b||a==c||a==d
a==b||a==c||a<d
25. Condition Chains
D Download Eas 4B
C Contact
Esc Search / Table of Contents