def processCondition(xmlElement):
 xmlProcessor = xmlElement.getXMLProcessor()
 if (xmlElement.object == None):
  xmlElement.object = ModuleXMLElement(xmlElement)
 if (xmlElement.object.conditionSplitWords == None):
  return
 if (len(xmlProcessor.functions) < 1):
  print 'Warning, "in" element is not in a function in processCondition in evaluate for:'
  print xmlElement
  return
 if (int(getEvaluatedExpressionValueBySplitLine(xmlElement.object.conditionSplitWords, xmlElement)) > 0):
  xmlProcessor.functions[(-1)].processChildren(xmlElement)
 else:
  xmlElement.object.processElse(xmlElement)

def processCondition ( xmlElement ) : xmlProcessor = xmlElement . getXMLProcessor ( ) if ( xmlElement . object == None ) : xmlElement . object = ModuleXMLElement ( xmlElement ) if ( xmlElement . object . conditionSplitWords == None ) : return if ( len ( xmlProcessor . functions ) < 1 ) : print 'Warning, "in" element is not in a function in processCondition in evaluate for:' print xmlElement return if ( int ( getEvaluatedExpressionValueBySplitLine ( xmlElement . object . conditionSplitWords , xmlElement ) ) > 0 ) : xmlProcessor . functions [ ( - 1 ) ] . processChildren ( xmlElement ) else : xmlElement . object . processElse ( xmlElement )
process the xml element condition .