Sure, here's a simple C# example:
As you can see, you can pass script expressions to
Good luck!
using (var engine = new V8ScriptEngine()) { if (Convert.ToBoolean(engine.Evaluate("Math.PI > 3.0"))) { Console.WriteLine("Pi is greater than 3!"); } }
ScriptEngine.Evaluate()
and inspect or convert the result as necessary. Note that ClearScript provides access to script engines only; it doesn't process HTML or implement the Web API.Good luck!