eval(src: utf8) → any

Category: [reflection](builtinsreflection)_

Parse a string as a WCL expression and evaluate it in the current scope.

ParameterTypeDescriptionRemarks
srcutf8WCL expression source to parse and evaluate.
returnsanyThe value the expression evaluates to.
wcl
eval("1 + 2 * 3")   // parse and evaluate a WCL expression → 7