Re: [showif] not working

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 52531
interpreted = N
texte = Shouldn't this test line: [showif [mydistance]<[distance]] It works!!!! [/showif] Be: [showif [mydistance1]<[distance]] It works!!!! [/showif] ? Anyways, I've created the same db's and populated them and ran your page with only that small change above and it seems to work ok, the page shows: It works!!!! ( 1056.33 <30) It works!!!! ( 1056.33 <35) If I leave it as [mydistance], it doesn't work as [mydistance] is undefined (you have it defined as [mydistance1]). Could that be the problem? GK P.S. Why do you all have to jump on Art for, he's been here long enough - he knows what time it is....sheesh :)) -----Original Message----- From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On Behalf Of Art Vargas Sent: Wednesday, August 27, 2003 11:38 AM To: WebDNA Talk Subject: Re: [showif] not working 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] ------------------------------------------------------------- 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:

    
  1. Re: [showif] not working ( "Gary Krockover" 2003)
  2. Re: [showif] not working ( Art Vargas 2003)
  3. Re: [showif] not working ( "Gary Krockover" 2003)
  4. Re: [showif] not working ( Donovan 2003)
  5. Re: [showif] not working ( Art Vargas 2003)
  6. Re: [showif] not working ( Kenneth Grome 2003)
  7. Re: [showif] not working ( Glenn Busbin 2003)
  8. Re: [showif] not working ( Art Vargas 2003)
  9. Re: [showif] not working ( Rob Marquardt 2003)
  10. Re: [showif] not working ( Glenn Busbin 2003)
  11. Re: [showif] not working ( Art Vargas 2003)
  12. Re: [showif] not working ( Donovan 2003)
  13. Re: [showif] not working ( Art Vargas 2003)
  14. Re: [showif] not working ( Rob Marquardt 2003)
  15. Re: [showif] not working ( Glenn Busbin 2003)
  16. Re: [showif] not working ( devaulw@onebox.com 2003)
  17. [showif] not working ( Art Vargas 2003)
Shouldn't this test line: [showif [mydistance]<[distance]] It works!!!! [/showif] Be: [showif [mydistance1]<[distance]] It works!!!! [/showif] ? Anyways, I've created the same db's and populated them and ran your page with only that small change above and it seems to work ok, the page shows: It works!!!! ( 1056.33 <30) It works!!!! ( 1056.33 <35) If I leave it as [mydistance], it doesn't work as [mydistance] is undefined (you have it defined as [mydistance1]). Could that be the problem? GK P.S. Why do you all have to jump on Art for, he's been here long enough - he knows what time it is....sheesh :)) -----Original Message----- From: WebDNA Talk [mailto:WebDNA-Talk@talk.smithmicro.com]On Behalf Of Art Vargas Sent: Wednesday, August 27, 2003 11:38 AM To: WebDNA Talk Subject: Re: [showif] not working 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] ------------------------------------------------------------- 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/ "Gary Krockover"

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:

Re2: frames & carts (1997) Major Security Hole (1998) searching illegal HTML (2002) Changing user submitted data (2000) [WebDNA] COMMITDATABASE in linux unix 64bits FastCGI version 8.6 (2020) Nested tags count question (1997) WebCatalog & SAP (2000) WebCat2b13MacPlugin - [math][date][/math] problem (1997) Changing the value assigned to a formvariable (2000) NetSplat and WebCat2 (1997) A [Loop][APPEND][URL] ... [/URL][/APPEND]/Loop] Question (2000) problems with 2 tags (1997) WebCatalog-3.0800 on Mac OS X Server (2000) Locking up with WebCatalog... (1997) Math Bug - more testing (1999) Problems passing [SKU] with $Replace in 2.0 (1997) docs for WebCatalog2 (1997) Memorial Day Weekend (2003) how to use WebCat w. SSL & CyberCash (1998) [group] ? (1997)