Re: Part 2 - [showif] if variable exists

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 20385
interpreted = N
texte = >[ShowIf [url][wogroup1datarq][/url]![raw][wogroup1datarq][/raw]] >[wogroup1datarq] >[/ShowIf]That [URL] part is messing you up. ShowIf works just like an algebraic equation, in that both sides of the equation have to be acted upon in the same way. For instance, with the [URL] stuff in there, you get something that looks like:%5Bwogroup1datarq%5D ! [wogroup1datarq, which is of course always trueI suppose you could wrap the right-hand side of the equation inside a [URL] in order to even things up.In any event, you can learn a valuable debugging lesson here: any time something doesn't seem to work right, start breaking the problem down into smaller pieces. In your case, try displaying each portion of the ShowIf equation separately on the page, like so:Left side of ShowIf: |[url][wogroup1datarq][/url]| Right side of ShowIf: |[raw][wogroup1datarq][/raw]|...and you should quickly be able to see what's going on, rather than just guessing at what the inside of [ShowIf] is seeing.Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Part 2 - [showif] if variable exists (PCS Technical Support 1998)
  2. Re: Part 2 - [showif] if variable exists (Kenneth Grome 1998)
  3. Re: Part 2 - [showif] if variable exists (Mike Eberly 1998)
  4. Re:Part 2 - [showif] if variable exists (Kenneth Grome 1998)
  5. Re: Part 2 - [showif] if variable exists (Andy Rayman 1998)
  6. Re:Part 2 - [showif] if variable exists (Jay Van Vark 1998)
  7. Re: Part 2 - [showif] if variable exists (Dave MacLeay 1998)
  8. Part 2 - [showif] if variable exists (Mike Eberly 1998)
>[ShowIf [url][wogroup1datarq][/url]![raw][wogroup1datarq][/raw]] >[wogroup1datarq] >[/ShowIf]That [url] part is messing you up. ShowIf works just like an algebraic equation, in that both sides of the equation have to be acted upon in the same way. For instance, with the [url] stuff in there, you get something that looks like:%5Bwogroup1datarq%5D ! [wogroup1datarq, which is of course always trueI suppose you could wrap the right-hand side of the equation inside a [url] in order to even things up.In any event, you can learn a valuable debugging lesson here: any time something doesn't seem to work right, start breaking the problem down into smaller pieces. In your case, try displaying each portion of the ShowIf equation separately on the page, like so:Left side of ShowIf: |[url][wogroup1datarq][/url]| Right side of ShowIf: |[raw][wogroup1datarq][/raw]|...and you should quickly be able to see what's going on, rather than just guessing at what the inside of [showif] is seeing.Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ PCS Technical Support

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:

How fast is your server? (2002) search question (2001) Going to anchors within a template page (1997) Shopping Cart Problem (1998) cart (1997) Site Builder & IE Mac (2004) RE: Languages (1997) Separate SSL Server (1997) referrer usage (1997) [WebDNA] macOS 10.13.3 and WebDNA Mac Server 8.5.1 - hick-up (2019) [OT] Xserve (2002) Date Range search (1997) Summing a field full of numbers ... (1997) Image upload *CODE SAMPLE* (2000) Email (1998) question: webdelivery folder and file (1997) WC 2.0 frames feature (1997) format_to_days on NT (1997) Caching [include] files ... (1997) Help name our technology! (1997)