runtime checking of conditionals in if/loop