I have a while loop that is checking that is going through a text file for data entery. There are certain lines that need to be entered manually but it is a usually only a few out of the hundreds of lines. I am looping through each line and doing some validation. When I have one that needs to be skipped it seems to skip it then the next entry it tries to enter does not work correctly. It seems it pulls in null for the SSN and then a wrong number for the Ammount variable which throws everything off and we have to stop everything. Is there a problem with my logic or is this a bug in the autoit?
[ autoit ]
While $i < $num $userInfo = StringSplit($userArray[$i], " ") $SSN = $userInfo[$User] $SSN = StringStripWS($SSN, 3) $Deduct = $userInfo[0] $Ammount = $userInfo[$Deduct] $Ammount = StringStripWS($Ammount, 3) ; Format Ammount to include decimal $Ammount = StringFormat("%02d", $Ammount) $Cents = StringRight($Ammount, 2) $Dollars = StringTrimRight($Ammount, 2) $Ammount = $Dollars & "." & $Cents If $SSN <> "111222" Or $SSN <> "222111" Then Send($SSN) Send("{Enter}Y{Enter}") Send($Ammount) Send("{Enter}") Send($Ammount) Send("{F12}") Sleep(1000) If WinActive("Warning") Then Send("{Enter}") EndIf Sleep(2000) EndIf $i = $i + 1 wend