def print_event_goal_details(goal_details):
 print('------ Event Goal -------')
 print(('Use Event Value  = %s' % goal_details.get('useEventValue')))
 for event_condition in goal_details.get('eventConditions', []):
  event_type = event_condition.get('type')
  print(('Type             = %s' % event_type))
  if (event_type in ('CATEGORY', 'ACTION', 'LABEL')):
   print(('Match Type       = %s' % event_condition.get('matchType')))
   print(('Expression       = %s' % event_condition.get('expression')))
  else:
   print(('Comparison Type  = %s' % event_condition.get('comparisonType')))
   print(('Comparison Value = %s' % event_condition.get('comparisonValue')))

def print_event_goal_details ( goal_details ) : print ( '------ Event Goal -------' ) print ( ( 'Use Event Value  = %s' % goal_details . get ( 'useEventValue' ) ) ) for event_condition in goal_details . get ( 'eventConditions' , [ ] ) : event_type = event_condition . get ( 'type' ) print ( ( 'Type             = %s' % event_type ) ) if ( event_type in ( 'CATEGORY' , 'ACTION' , 'LABEL' ) ) : print ( ( 'Match Type       = %s' % event_condition . get ( 'matchType' ) ) ) print ( ( 'Expression       = %s' % event_condition . get ( 'expression' ) ) ) else : print ( ( 'Comparison Type  = %s' % event_condition . get ( 'comparisonType' ) ) ) print ( ( 'Comparison Value = %s' % event_condition . get ( 'comparisonValue' ) ) )
prints all the event goal type info .