public override void Evaluate(IScriptContext context) { var result = true; if (_list == null) { context.Result = true; return; } _list.Evaluate(context); var rez = (object[])context.Result; foreach (var o in rez) { try { result = result & (bool)o; } catch { throw new ScriptVerificationException(Strings.VerificationNonBoolean); } } context.Result = result; }
public override void Evaluate(IScriptContext context) { if (_args == null) { context.Result = Empty; return; } _args.Evaluate(context); }
public override void Evaluate(IScriptContext context) { if (_funcArgs != null) { _funcArgs.Evaluate(context); context.Result = context.Result; } else { context.Result = new object[0]; } }
public override void Evaluate(IScriptContext context) { _exprList.Evaluate(context); }