Posted 23 December 2012 - 12:15 AM
Ok, I'm attempting to revive an old program I found to do what I wanted and this error keeps popping up.
Password = a.readLine()
YourCurrent = tonumber(a.readLine())
YourPay = tonumber(tWords[4])
a.close()
if tWords[3] == Password and fs.exists("Accounts/" ..tWords[5]) then
if YourCurrent > YourPay pr YourCurrent == YourPay then <------- Error Line
test = fs.open("Accounts/" ..tWords[5], "r")
TheirPass = test.readLine()
TheirCurrency = tonumber(test.readLine())
test.close()
That error line is where it says I need to put a then but I have one and I have a double '=='. could anyone shed some light on the subject?