mmikeww / AHK-v2-script-converter

AHK v1 -> v2 script converter
https://autohotkey.com/boards/viewtopic.php?f=6&t=25100
The Unlicense
489 stars 38 forks source link

Conversion of ternaries with double quotes #197

Closed Banaanae closed 3 weeks ago

Banaanae commented 3 weeks ago

After similar issues were reported in #147 I did more testing

V1:

Var2 := " ""Test"" "

Var := """Test""" = Trim(Var2) ? true : false

MsgBox % Var

V2 (Converted):

Var2 := " `"Test`" "

Var := "`"Test`"" 

MsgBox(Var)

V2 (Expected):

Var2 := " `"Test`" "

Var := "`"Test`"" = Trim(Var2) ? true : false

MsgBox(Var)
andymbody commented 3 weeks ago

Converts correctly on my end... silly question but... are you using the latest script?

Banaanae commented 3 weeks ago

D: I blame this image