Support if-then-else