return;
}
else if (_text.startsWith("=="))
{
String expression = _text.substring(2);
Expression expr = null;
if (!expression.isEmpty())
{
try
{
expr = ExpressionTree.parse(expression);
}
catch (ExpressionParseException epe)
{
}
if (expr != null)
{
double result;
try
{
VarMap vm = new VarMap();
vm.setValue("adena", activeChar.getAdena());
result = expr.eval(vm, null);
activeChar.sendMessage(expression);
activeChar.sendMessage("=" + Util.formatDouble(result, "NaN", false));
}
catch (Exception e)
{
}
}
}