If-loop

Changes:
- Enhanced if-loop: Split if-loops with multiple conditions into
multiple loops with less conditions in them.