Add ifCond helper function

Currently supports 'or' operator.
We can extend this with other goodness later but that's
all we need right now.

Change-Id: I7ff78acc1b13d491f416acae6797a691a039e253
Merge "Add ifCond helper function" into frontend-rewrite