This topic is locked

If then statement based on selected value in table

4/23/2008 8:52:48 PM
ASPRunnerPro General questions
W
wilsonk author

I have a field in an add page where I select from a drop down list as\populatesd by a lookup table.
These are codes for billing, I am tasked with displaying a price range based on the code selected. Example if you select code LC1993 then we want it to display a message not to exceed $50 per unit claimed.
I have like 50 codes and each equal different dollar amounts. SO how in ASP pro would I do an if then or case statement for each code selected.
Thank you for any help

Sergey Kornilov admin 4/24/2008

If think you case use Select Case statement:
select case payment

case "Cash"

msgbox "You are going to pay cash"

case "Visa"

msgbox "You are going to pay with visa"

case "AmEx"

msgbox "You are going to pay with American Express"

case Else

msgbox "Unknown method of payment"

end select