Closed bishboria closed 13 years ago
Hi Enrique, added a simple function that converts post-conditional expressions into conditional expressions. E.g.
do something if condition
becomes
if condition do something end
Also works for unless, while and until. The condition can also be in parentheses.
Updated: previously the function would keep searching backwards until it found a conditional operator. It now stops if a conditional isn't found on the current line.
Thanks a lot mate! :) Looks good!
Hi Enrique, added a simple function that converts post-conditional expressions into conditional expressions. E.g.
do something if condition
becomes
if condition do something end
Also works for unless, while and until. The condition can also be in parentheses.