If and ElseIfs have always given me fits. I have a couple of other places in my code where I use If, ElseIf, Else constructions. They seem to work. This one doesn't for some reason. Do I have a spacing problem? Any ideas?
PHP:
'This section of code calculates the incidence angle modifier (Kta)
INCAN = INCAN * Rad2Deg
If INCAN < 7 Then Kta = 1
ElseIf INCAN < 12 Then Kta = 0.9999
ElseIf INCAN < 15 Then Kta = 0.9998
ElseIf INCAN < 90 Then Kta = 0.01654 + (90 - INCAN) * 0.13686
Else: Kta = 0.01654
End If
INCAN = INCAN * Deg2Rad