Write an elaborate parser that scans each literal, tokenises it, and ensures everything is in order.
It can be done, but I’m not sure how many blocks you’d need.
Use the evaluate JavaScript block of the WebViewer with the expression as the input. If you get NaN or undefined as an output, you can conclude the expression is invalid.
I’m using math extension. facing NaN error when textbox.text having .(dot) for example :
when textbox.text=1 working
when textbox.text=1. shows NaN
when textbox.text=1.0 working Blocks: