1using System.Threading.Tasks;
76 if (!(
Arguments[0].AssociatedObjectValue is
string Key))
82 long Amount = (long)N;
87 Count = await Runtime.Counters.RuntimeCounters.DecrementCounter(Key, Amount);
91 Count = await Runtime.Counters.RuntimeCounters.DecrementCounter(Key);
Script runtime exception.
Class managing a script expression.
static double ToDouble(object Object)
Converts an object to a double value.
Base class for multivariate funcions.
ScriptNode[] Arguments
Function arguments.
static readonly ArgumentType[] argumentTypes2Scalar
Two scalar parameters.
static readonly ArgumentType[] argumentTypes1Scalar
One scalar parameter.
Base class for all nodes in a parsed script tree.
int Length
Length of expression covered by node.
Expression Expression
Expression of which the node is a part.
int Start
Start position in script expression.
DecCounter(ScriptNode Key, int Start, int Length, Expression Expression)
Decrements a counter
override string[] DefaultArgumentNames
Default Argument names
DecCounter(ScriptNode Key, ScriptNode Amount, int Start, int Length, Expression Expression)
Decrements a counter
override async Task< IElement > EvaluateAsync(IElement[] Arguments, Variables Variables)
Evaluates the function.
override bool IsAsynchronous
If the node (or its decendants) include asynchronous evaluation. Asynchronous nodes should be evaluat...
override string FunctionName
Name of the function
override IElement Evaluate(IElement[] Arguments, Variables Variables)
Evaluates the function.
Basic interface for all types of elements.