Groups | Blog | Home
all groups > inetserver asp general > june 2003 >

inetserver asp general : help with numbers !


Brian Staff
6/30/2003 8:20:05 AM
John,

[quoted text, click to view]

You are comparing two "strings" and so, "1000" is less that "950"

Brian Staff
John Smith
6/30/2003 3:08:33 PM
Hi,

I'm just trying to work out the postage costs for a shopping cart and for
some reason (possibly me being silly) i can't get the following to work :

Dim strWeight3, strWeight4
strWeight3 = "950"
If strWeight3<="1000" Then strWeight4="3.32" Else strWeight4="7.50"
Response.Write(strWeight3 & "&nbsp;/&nbsp;")
Response.Write(strWeight4)


So the weight's in Grammes, If it's over 1000g then the price is 7.50
otherwise it's 3.32.
The problem is this will only return the figure 7.50 for some reason
.................

Any pointers appreciated.

Thanks

AddThis Social Bookmark Button