Added compilation logic for if-else statements.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>