Inline "on the fly" calculations

Hello, is there a way to have textblaze function as a basic "in-line calculator?"
ie, type in a calculation such as 8*7 (then trigger the result, 56) then type in ^2 (then trigger the result), etc etc. If so, sorry if I've been living under a rock. If not, that would be a pretty cool feature.

Thanks.

Yes, you can.

Create a lambda function from a string and then call it:

{formtext: name=eq; default=1+1}

= {=("() -> " & eq)()}

Nice. thanks.

How would you change this so only the result would be inserted. I do not want the inputs to be inserted
See situation in pdf

{note}{formtext: name=eq; default=1+1}

={endnote} {=("() -> " & eq)()}

should do it. You just bracket the formula with {note} ... {endnote} so only the solution comes after it.

Mike

Perfect. works like a charm