Code: Select all
test := InStr(A_Loopfield, "USER")
msgbox %test%
So, when the line doesnt has USER it returns 0.
It works... BUT... When I try to use a variable (which is a string) on the IF, it ONLY RETURNS 1 all the time.
Code: Select all
variable := "USER"
test := InStr(A_Loopfield, %variable)
msgbox %test%
What is happening here?