Problam with "if then" statment (Full Version)

All Forums >> [Web Development] >> Microsoft FrontPage Help



Message


yaronbb -> Problam with "if then" statment (4/7/2007 18:52:44)

Hi to all
I am trying to have this on the page " <% if Request("Value1") > Request("Value2") then %>yes<%else%>no<%end if%>"
When for example : Value1 = 43 and Value2 = 6 and the result that I get is "no"
Any idea why?




Spooky -> RE: Problam with "if then" statment (4/8/2007 20:14:40)

Do a numerical comparision like so :
<% if cint(Request("Value1")) > cint(Request("Value2")) then %>yes<%else%>no<%end if%>

Otherwise its treated as a text comparison




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
2.929688E-02