Sets the value for the undeclared variables option. If this option is set to true, expressions containing variables that were not previously added to Jep will be automatically be added while parsing, and initialized to 0. Note this only affects the parsing stage, EvaluationException will still be thrown when trying to evaluate a variable with an undefined value.

If this option is set to false, variables that were not previously added to Jep will produce an ParseException while parsing.

The default value is true.

Namespace:  SingularSys.Jep
Assembly:  Jep (in Jep.dll) Version: 1.1.0.0 (1.0.0)

Syntax

C#
public bool AllowUndeclared { get; set; }
Visual Basic (Declaration)
Public Property AllowUndeclared As Boolean
Visual C++
public:
property bool AllowUndeclared {
	bool get ();
	void set (bool value);
}

See Also