Skip to content

Commit

Permalink
* Updated *Compare variables* in *If Statements* window to use expres…
Browse files Browse the repository at this point in the history
…sions with symbols operators only.
  • Loading branch information
Pulover committed Oct 15, 2020
1 parent a556b43 commit 7ecd875
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions LIB/Playback.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -2113,20 +2113,8 @@ IfEval(_Name, _Operator, _Value)
{
Switch _Operator
{
Case "=":
result := (_Name = _Value) ? true : false
Case "==":
result := (_Name == _Value) ? true : false
Case "!=", "<>":
result := (_Name != _Value) ? true : false
Case ">":
result := (_Name > _Value) ? true : false
Case "<":
result := (_Name < _Value) ? true : false
Case ">=":
result := (_Name >= _Value) ? true : false
Case "<=":
result := (_Name <= _Value) ? true : false
Case "=", "==","!=", "<>", ">", "<", ">=", "<=":
result := Eval(_Name " " _Operator " " _Value)[1]
Case "in":
If _Name in %_Value%
result := true
Expand Down Expand Up @@ -2586,7 +2574,6 @@ DerefVars(v_String)
{
global

OutputDebug, % v_String
v_String := StrReplace(v_String, "%A_Space%", "%_z%")
, v_String := StrReplace(v_String, "``%", _w)
While (RegExMatch(v_String, "%(\w+)%", rMatch))
Expand Down

0 comments on commit 7ecd875

Please sign in to comment.