#NEWLINE# def resolve( self , context ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# ( var1 , var2 ) = self . resolve_vars ( context ) #NEWLINE# outcome = self . calculate ( var1 , var2 ) #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# outcome = False #NEWLINE# #UNINDENT# if self . negate : #NEWLINE# #INDENT# return ( not outcome ) #NEWLINE# #UNINDENT# return outcome