added global variable cond -- current state of conditionals