Page 2 of 2

Update v1.1.7

Posted: 07 Aug 2016, 11:51
by Pulover
Update: v1.1.7
  • Fixed bug when assigning a variable to a ternary operation.

Re: Eval - Evaluate Expressions in Strings Dynamically (Updated 07/08/2016)

Posted: 31 Oct 2016, 01:38
by guest3456
for reference, AHK_H can do Eval() stuff built-in:

Code: Select all

var := 99
MsgBox var=%var%

mycode := "var2 := var+2`nMsgBox, var2 from within ahkExec = `%var2`%"
MsgBox, mycode to dynamically execute:`n`n%mycode%

ahkExec(mycode)

MsgBox, var2 from main script = %var2%
ahkExec() is one function provided to allow it, i think there are a few others for doing it in separate threads

Re: Eval - Evaluate Expressions in Strings Dynamically (Updated 07/08/2016)

Posted: 24 Aug 2019, 10:31
by aldrinjohnom
This Eval Function is great! but apparently I found some bug where some results are wrong

eg.
using the "expression tester.ahk". I tried evaluating:
-(2.6167)-193

the result generated was:
195.616700

the answer should be:
-195.616700

It will be a good news if there is a solution for this probem.