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%


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

using the "expression tester.ahk". I tried evaluating:

the result generated was:

the answer should be:

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

Update: v1.2.0

Posted: 26 Sep 2020, 15:58
by Pulover
* Fixed bugs in math operations with subtraction.
* Fixed bug with negative signs before parenthesis.
* Fixed bug in assignments.

Update: v1.2.1

Posted: 07 Oct 2020, 20:29
by Pulover
* Fixed subtraction problem.

Update: v1.2.2

Posted: 26 Oct 2020, 11:41
by Pulover
  • Fixing bugs with subtraction.
Another attempt to fix the problems with negative numbers in math operations. This time instead of trying to fix the compiled expression I've removed one line of the compiler that was causing the issue, so if anyone finds another problem because of this change, please let me know because I have no idea what that line was supposed to do...

Update: v1.2.3

Posted: 01 Nov 2020, 17:17
by Pulover
  • Fixed math operations as strings being evaluated (removed temporary fix from v1.2.0).

Update: v1.2.4

Posted: 09 Nov 2020, 15:43
by Pulover
  • Fixed bug when assigning {} object.
  • Fixed bug with key-pair objects.
  • Fixed problem with quoted strings inside objects.

Update: v1.2.5

Posted: 13 Nov 2020, 12:13
by Pulover
  • Fixed bug with multiple compare operators.

Update: v1.2.6

Posted: 16 Nov 2020, 08:46
by Pulover
  • Fixes issue with strings concatenation.

Update: v1.2.7

Posted: 20 Nov 2020, 11:52
by Pulover
  • Fixed problems with quotes in strings.

Update: v1.2.8

Posted: 28 Dec 2020, 17:44
by Pulover
  • Fixed bug with named operators.