#NEWLINE# def run( rule , defined_variables , defined_actions ) : #NEWLINE# #INDENT# ( conditions , actions ) = ( rule [ 'conditions' ] , rule [ 'actions' ] ) #NEWLINE# rule_triggered = check_conditions_recursively ( conditions , defined_variables ) #NEWLINE# if rule_triggered : #NEWLINE# #INDENT# do_actions ( actions , defined_actions ) #NEWLINE# return True #NEWLINE# #UNINDENT# return False