def _parse_if(self, element):
<EOL>name = attribute(element, '<STR_LIT:name>')<EOL>cond_type = attribute(element, '<STR_LIT:type>', self.type)<EOL>operator = None<EOL>value = None<EOL>for o in ConditionStatement.operators:<EOL><INDENT>if o in element.attrib:<EOL><INDENT>operator = o<EOL>value = element.attrib[operator]<EOL>break<EOL><DEDENT><DEDENT>contents = tuple(self.get_contents(element))<EOL>self.statements.append(ConditionStatement(cond_type, operator, contents, value, name))<EOL>
Parse the if statement
:param element: The XML Element object
:type  element: etree._Element