Thanks always for the help!
I have a quick question. Somehow, this keeps on returning "Not in the list" while, Value (00004) and Zero(0) should return (000040) and find it in the array. Can you help how I can solve this?
Thanks a lot!
Code: Select all
^3::
Array := ["000020","000040"]
Value := 00004
Zero := 0
msgbox, %Value%
msgbox, %Value%%Zero%
Loop, % Array.Length() {
if( Array[ A_index ] = %Value%%Zero% )
msgbox, "In the list"
}
msgbox, "Not in the list"
return