undefined variable if/else exclusion

Fixed a bug where if the variable in an "if" tag wasn't available, it
wouldnt ever get to the "elseif" or "else".