EVAL-type command?

Blitz3D Forums/Blitz3D Programming/EVAL-type command?

gburgess(Posted 2006) [#1]
I'm looking for a command that can evaluate a string like "2+2" and return 4. In BBC BASIC, I think it was called EVAL. eg.

h=EVAL("2+2")

I'm not sure if I've missed it or if it doesn't exist. Is there anything like this in Blitz3D?


b32(Posted 2006) [#2]
He I know that command! It was my favorite on the Acorn Electron. Maybe this one: http://blitzbasic.co.nz/codearcs/codearcs.php?code=407 ?


gburgess(Posted 2006) [#3]
That looks cool, I'll try it out tomorrow! Good call, thank you, sir.

I'll remember you in my memoirs.