Does this asp code make sense as it is not giving error message but is not giving desired results
Secondly, there is a nested if else statement nested within another if else statement, must it be separated but some means?
Secondly, there is a nested if else statement nested within another if else statement, must it be separated but some means?
Code:
<%
If Session("radius") <> "100" AND (Recordset1.EOF Or Recordset1.BOF) AND (Recordset3.EOF Or Recordset3.BOF) then
If Session("radius") <> "50" AND (Recordset1.EOF Or Recordset1.BOF) AND (Recordset3.EOF Or Recordset3.BOF) then
If Session("radius") <> "30" AND (Recordset1.EOF Or Recordset1.BOF) AND (Recordset3.EOF Or Recordset3.BOF) then
Session("radius")="30"
Response.Redirect("processform2.asp")
Else
Session("radius")="50"
Response.Redirect("processform2.asp")
End If
Else
Session("radius")="100"
Response.Redirect("processform2.asp")
End If
Else
'nested if else code
If Session("Industry")<>"" AND (Recordset1.EOF Or Recordset1.BOF) AND (Recordset3.EOF Or Recordset3.BOF) Then
If Session("VendorPartNumber")<>"" AND (Recordset1.EOF Or Recordset1.BOF) AND (Recordset3.EOF Or Recordset3.BOF) Then
If Session("PostalCode")<>"" AND (Recordset1.EOF Or Recordset1.BOF) AND (Recordset3.EOF Or Recordset3.BOF) Then
Session("PostalCode")= ""
Response.Redirect("processform2.asp")
Else
Session("VendorPartNumber")=""
Response.Redirect("processform2.asp")
End If
Else
Session("Industry")=""
Response.Redirect("processform2.asp")
End If
Else
Session("PostalCode")=""
Session("VendorPartNumber")=""
End If
'end of nested if else code
End If
%>