navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

Problam with "if then" statment

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Microsoft FrontPage Help >> Problam with "if then" statment
Page: [1]
 
yaronbb

 

Posts: 44
Joined: 10/5/2006
Status: offline

 
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

 

Posts: 26599
Joined: 11/11/1998
From: Middle Earth
Status: offline

 
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


_____________________________

If you arent part of the solution, then there is good money to be made prolonging the problem

§þ:)


(in reply to yaronbb)
Page:   [1]

All Forums >> Web Development >> Microsoft FrontPage Help >> Problam with "if then" statment
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts