Added looping support. Updated if tag to accept a true list and false list (acts as if and ifelse).