interpreter for 'if' statements