def getEvaluatedBoolean(defaultValue, elementNode, key):
 if (elementNode == None):
  return defaultValue
 if (key in elementNode.attributes):
  return euclidean.getBooleanFromValue(getEvaluatedValueObliviously(elementNode, key))
 return defaultValue

def getEvaluatedBoolean ( defaultValue , elementNode , key ) : if ( elementNode == None ) : return defaultValue if ( key in elementNode . attributes ) : return euclidean . getBooleanFromValue ( getEvaluatedValueObliviously ( elementNode , key ) ) return defaultValue
get the evaluated boolean .