def get_bool_var(self):
        var = self.get_var()
        if not self.at_end():
            op_token = self.get_token(lookahead=True)[0]
            if isinstance(op_token, basestring) and (op_token not in
                                                     BOOL_OPERATORS):
                op, negate = self.get_operator()
                return op(var, self.get_var(), negate=negate)
        return var
Returns either a variable by itself or a non-boolean operation (such as
dataset/ETHPy150Open skorokithakis/django-annoying/annoying/templatetags/smart_if.py/IfParser.get_bool_var