For a guide to the choosing ASP or PHP, click here
Home >> If Statements >> If Statements and Numbers This snippet shows how easy it is to compare numbers and make decisions based on the outcome
<% ' prep two numbers dim intOne, intTwo intOne = 1 intTwo = 2 ' now compare them to ' see if they're equal if (intOne = intTwo) then ' everything until the 'end if' ' will execute if the two variables ' are the same end if ' also, instead of an equal sign, you ' can use these operators: ' > greater then ' < less then ' >= greater then or equal to ' <= less then or equal to ' <> not equal to %> What is ASP?
greater then // < less then // >= greater then or equal to // <= less then or equal to // != not equal to ?> What is PHP?