Syntactic Sugar
ufLang supports the following syntactic sugar:
for (<variable-declaration>; <condition>; <variable-update>)
<block> // Executes this line in the loop
<block> // Execute this line after the loopif (<condition>)
<block> // Executes this line if the condition is true
<block> // Executes this line anyway<variable> = <condition> ? <value_if_true> : <value_if_false>;if (<condition>)
<variable> = <value_if_true>;
else
<variable> = <value_if_false>;Last updated