eval(src: utf8) → any
Category: [reflection](builtinsreflection)_
Parse a string as a WCL expression and evaluate it in the current scope.
| Parameter | Type | Description | Remarks |
|---|---|---|---|
| src | utf8 | WCL expression source to parse and evaluate. | — |
| returns | any | The value the expression evaluates to. | — |
wcl
eval("1 + 2 * 3") // parse and evaluate a WCL expression → 7