Executing multiple functions

Feb 26, 2015 at 4:36 PM
Edited Feb 26, 2015 at 4:36 PM
I have the following script:
 string script = @"function1(a) { }  function2(b) { function1(b); }"
and the following C# code:
 engine.Execute(script);
 engine.Script.function1("blah");
I'm getting an exception on the engine.Script "function1 is not defined". What am I doing wrong?
Feb 26, 2015 at 5:35 PM
Oops, I had a typo in the script. After fixing the typo it works.