returnstatements outside of a function:
engine.Evaluate("return d;"); // error engine.Evaluate("d"); // OK
vardon't have values, but expressions do, so if you'd like your script to return a value, make sure it ends with an expression:
By the way, we'll post a fix for the VB.NET issue very soon.
engine.Evaluate("var d = 123"); // returns no value (undefined) engine.Evaluate("var d = 123; d"); // returns 123