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

def getEvaluatedValue ( defaultValue , elementNode , key ) : if ( elementNode == None ) : return defaultValue if ( key in elementNode . attributes ) : return getEvaluatedValueObliviously ( elementNode , key ) return defaultValue
get the evaluated value .