Made changes to ifelse.js that make it more efficient and less verbose.
Fixed issue where if all block conditions were exhausted without being able to enter and there was no continuation, the function would fail.