I am new to programming and taking a basic VB script programming class as a requirement for the degree I am working on. I have this program that is converting celsius numbers to farhenheit and doing it in increments and the amount to be viewed. This program works in visual logic flow chart just fine, and I have spent more than 25 hours just trying to get this program to work. I know it has to be something completely stupid, but being new to the programming world I am at a loss, and don't have the answers. Could someone look at this script, it is very basic and see if there is something I am missing. The error always comes up after the Else at fahtemp = (9/5) * tempaccum + 32. Any insite would be greatly appreciated. Thank you in advance for your time. Jon
Option Explicit
Dim celtemp, amttemp, increment
Dim newtemp, tempaccum, fahtemp, loopnum, templist
celtemp = inputbox("What is your starting Temp?")
amttemp = inputbox("How many temperatures do you want displayed?")
increment = inputbox("What temperature increments do you want?")
Do while loopnum < amttemp
loopnum = loopnum +1
If loopnum = 1 then
tempaccum = celtemp
fahtemp = (9/5) * (tempaccum) +32
templist = "1." & "Cel Temp: " &tempaccum & "- " & "Fah Temp: " &fahtemp
else
tempaccum = tempaccum + increment
fahtemp = (9/5) * tempaccum + 32
templist = templist &" " &loopnum & "." & "Cel Temp: " &tempaccum & "- " & "Fah Temp: " &fahtemp
End If
newtemp = celtemp + increment
Loop
Document.write "We are starting at Temp: " &celtemp
Document.write "<br> We are displaying " &amttemp & "times."
Document.write "<br> We are incrementing by: " &increment
Document.write "<br> The Temperature Table is as follows: " &templist