Make if() a builtin function so that only one of the two outcomes are evaluated.

Change-Id: Idca032fc06eacafdea34953f568819abae34f806