Executing multiple functions

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