From 08ea2aedd254d49d37240fbfe486f4ae50840f62 Mon Sep 17 00:00:00 2001 From: Marc Gilleron Date: Thu, 31 Jan 2019 15:44:29 +0100 Subject: Explain how to use Expression inputs --- doc/classes/Expression.xml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'doc/classes') diff --git a/doc/classes/Expression.xml b/doc/classes/Expression.xml index b0a21d7f82..78623b359e 100644 --- a/doc/classes/Expression.xml +++ b/doc/classes/Expression.xml @@ -39,6 +39,7 @@ Executes the expression that was previously parsed by [method parse] and returns the result. Before you use the returned object, you should check if the method failed by calling [method has_execute_failed]. + If you defined input variables in [method parse], you can specify their values in the inputs array, in the same order. @@ -64,6 +65,7 @@ Parses the expression and returns a [enum @GlobalScope.Error]. + You can optionally specify names of variables that may appear in the expression with [code]input_names[/code], so that you can bind them when it gets executed. -- cgit v1.2.3