def value(self):
<EOL>if len(self._element):<EOL><INDENT>var = '<STR_LIT>'.join(map(str, self.trigger.agentml.parse_tags(self._element, self.trigger)))<EOL><DEDENT>else:<EOL><INDENT>var = self._element.text or attribute(self._element, '<STR_LIT:name>')<EOL><DEDENT>default = attribute(self._element, '<STR_LIT:default>')<EOL>try:<EOL><INDENT>self._log.debug('<STR_LIT>'.format(type=self.type, var=var))<EOL>if self.type == '<STR_LIT:user>':<EOL><INDENT>return self.trigger.user.get_var(var)<EOL><DEDENT>else:<EOL><INDENT>return self.trigger.agentml.get_var(var)<EOL><DEDENT><DEDENT>except VarNotDefinedError:<EOL><INDENT>if default:<EOL><INDENT>self._log.info('<STR_LIT>'<EOL>.format(type=self.type.capitalize(), var=var, default=default))<EOL><DEDENT>self._log.info('<STR_LIT>'<EOL>.format(type=self.type.capitalize(), var=var))<EOL>return '<STR_LIT>'<EOL><DEDENT>
Return the current value of a variable