Saturday, February 23, 2013

If statement in ASP

<!DOCTYPE html>
<html>
    <body>
        <%
            x=5
            y=5

            if x>y then
                response.write("x is greater than y")
            elseif x<y then
                response.write("x is less than y")
            else
                response.write("x is equal to y")
            end if
        %>
    </body>
</html>

No comments:

Post a Comment