Skip to content

TryGetVariable Method ​

Definition ​

  • Namespace: JASE.Expressions
  • Assembly: JASE.Expressions.dll

bool TryGetVariable(string name, out object value) ​

csharp
bool TryGetVariable(string name, out object value)

Attempts to resolve a previously registered variable by name.

Parameters ​

NameDescription
nameThe variable name as it appears in the expression.
valueWhen this method returns, contains the current value of the variable if it exists; otherwise null.

Returns ​

true if the variable is defined; otherwise, false.