Re: [showif] not working
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 52529
interpreted = N
texte = Re-read glenns original post. ;-)(and then look at your code again.)DonovanArt Vargas wrote:> Kenteh: I have try debugging first, which is why I am posting in the list.> > I did mention in the original post that I had tested the values I was> getting back, and they seemed ok.> > Here is the code I am having problems.> > [search db=location.db&neskudatarq=[blank]&zipsumm=T&distancetype=number]> [founditems]> > [!]------------------------------------------------------------------> [zip] from search> [v2] variable passed from form> this portion of the code returns a distance value, I am not sure if is a> text or a number variable> ---------------------------------------------------------------------[/!]> [text]myzipcode1=[zip][/text]> [text]myzipcode2=[v2][/text]> > [text]mydistance1=> [!]calculatedist.inc takes to values myzipcode1 and myzipcode2 and outputs a> distance[/!]> [search db=zips.db&eqzipcodedatarq=[myzipcode1]]> [founditems]> [text]latitude1=[latitude][/text]> [text]longitude1=[longitude][/text]> [/founditems]> [/search]> [search db=zips.db&eqzipcodedatarq=[myzipcode2]]> [founditems]> [text]latitude2=[latitude][/text]> [text]longitude2=[longitude][/text]> [/founditems]> [/search]> [Format> .2f][math]3963.0*acos(sin(([latitude1]/57.3))*sin(([Latitude2]/57.3))+cos(([> latitude1]/57.3))*cos(([Latitude2]/57.3))*cos([Longitude2]/57.3 -> [longitude1]/57.3))[/math][/format]> [/text]> > [!]--------------------------------------------------> [distance] from search> [mydistance] from [text] avobe> ---------------------------------------------------[/!]> > [showif [mydistance]<[distance]]> It works!!!!> [/showif]> > [!]used to view values[/!]> ([mydistance1]<[distance])> > [/founditems]> [/search]> > _\\///_> (' o-o ') > _______ooOo_( )oOoo__________> Arturo Vargas> Programmer/System Integration> The Sports Section> (818) 998-6200> Art@SportsSection.com> ________________Oooo_________ > oooO ( )> ( ) \ /> \ / (_/> \_)> > > -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list
.> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > Web Archive of this list is at: http://webdna.smithmicro.com/> -- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE Eucalyptus Design Developer / Consultant <-Web Development (specializing in eCommerce), -> <-Graphic Design, and Pre-Press Consultation -> ADDRESS:> Donovan Brooke DBA Eucalyptus Design P.O. Box 260153 Madison, WI 53726-0153 PH:> 1.608.592.3567 email:> dbrooke@euca.us Web:> http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
Re-read glenns original post. ;-)(and then look at your code again.)DonovanArt Vargas wrote:> Kenteh: I have try debugging first, which is why I am posting in the list.> > I did mention in the original post that I had tested the values I was> getting back, and they seemed ok.> > Here is the code I am having problems.> > [search db=location.db&neskudatarq=[blank]&zipsumm=T&distancetype=number]> [founditems]> > [!]------------------------------------------------------------------> [zip] from search> [v2] variable passed from form> this portion of the code returns a distance value, I am not sure if is a> text or a number variable> ---------------------------------------------------------------------[/!]> [text]myzipcode1=[zip][/text]> [text]myzipcode2=[v2][/text]> > [text]mydistance1=> [!]calculatedist.inc takes to values myzipcode1 and myzipcode2 and outputs a> distance[/!]> [search db=zips.db&eqzipcodedatarq=[myzipcode1]]> [founditems]> [text]latitude1=[latitude][/text]> [text]longitude1=[longitude][/text]> [/founditems]> [/search]> [search db=zips.db&eqzipcodedatarq=[myzipcode2]]> [founditems]> [text]latitude2=[latitude][/text]> [text]longitude2=[longitude][/text]> [/founditems]> [/search]> [Format> .2f][math]3963.0*acos(sin(([latitude1]/57.3))*sin(([Latitude2]/57.3))+cos(([> latitude1]/57.3))*cos(([Latitude2]/57.3))*cos([Longitude2]/57.3 -> [longitude1]/57.3))[/math][/format]> [/text]> > [!]--------------------------------------------------> [distance] from search> [mydistance] from [text] avobe> ---------------------------------------------------[/!]> > [showif [mydistance]<[distance]]> It works!!!!> [/showif]> > [!]used to view values[/!]> ([mydistance1]<[distance])> > [/founditems]> [/search]> > _\\///_> (' o-o ') > _______ooOo_( )oOoo__________> Arturo Vargas> Programmer/System Integration> The Sports Section> (818) 998-6200> Art@SportsSection.com> ________________Oooo_________ > oooO ( )> ( ) \ /> \ / (_/> \_)> > > -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > Web Archive of this list is at: http://webdna.smithmicro.com/> -- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE Eucalyptus Design Developer / Consultant <-Web Development (specializing in eCommerce), -> <-Graphic Design, and Pre-Press Consultation -> ADDRESS:> Donovan Brooke DBA Eucalyptus Design P.O. Box 260153 Madison, WI 53726-0153 PH:> 1.608.592.3567 email:> dbrooke@euca.us Web:> http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Donovan
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
default value from Lookup (was Grant, please help me) (1997)
[isfile] ? (1997)
RE: Sorting error (1997)
Checkboxes (1997)
WebCat Emailer & Liststar (1997)
Database access (2003)
WebTen and WebCat (1997)
[ot] Securing PHP & MySQL (2003)
WebSTAR and WebSTAR/SSL with WebCatalog plugins (1998)
[WebDNA] WebDNA jQuery JSON javascript stuff (2010)
Calculating Shipping (1997)
Admin Edit prob. (1997)
CSS positioning!!! (2001)
[WebDNA] Re-sending email (2018)
Search/sort in URL Was: GuestBook example (1997)
customer info (2001)
Custom WebCat Prefs ... (1997)
WebCatalog for guestbook ? (1997)
Problems getting parameters passed into email. (1997)
I have troubles to send message out (1998)