Re: [ShowIf] if the varieable exists

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 20287
interpreted = N
texte = >I understand that normally you would put the [ShowIf] context followed >by the equation. >ex: [ShowIf [wogroup1datarq]=Mustang]Car[/ShowIf] >However, there will not always be an existing variable called >[wogroup1datarq]. Instead, I would like to [ShowIf] if the variable >[wogroup1datarq] exists. How can I do this? > >MikeI don't really understand what you mean, so I give you two suggestions:If you want to show something if the [wogroup1datarq] is not empty:[ShowIf [wogroup1datarq]!]Your fancy stuff here![/ShowIf]If you want to show something if the [wogroup1datarq] is not defined:[ShowIf [wogroup1datarq]![raw][wogroup1datarq][/raw]]Your fancy stuff here![/ShowIf] ************************************************************* Christer Olsson Stora Nygatan 21 Phone +46 40 791 50 Ljusa Ideer AB S-211 37 Malmoe Fax +46 40 97 99 77 Sweden http://www.ljusaideer.se Associated Messages, from the most recent to the oldest:

    
  1. Re: [ShowIf] if the varieable exists (Grant Hulbert 1998)
  2. Re: [ShowIf] if the varieable exists (Scott Szretter 1998)
  3. Re: [ShowIf] if the varieable exists (Howard Wolosky 1998)
  4. Re: [ShowIf] if the varieable exists (Howard Wolosky 1998)
  5. Re: [ShowIf] if the varieable exists (Howard Wolosky 1998)
  6. Re: [ShowIf] if the varieable exists (bob 1998)
  7. Re: [ShowIf] if the varieable exists (Howard Wolosky 1998)
  8. Re: [ShowIf] if the varieable exists (Christer Olsson 1998)
  9. Re: [ShowIf] if the varieable exists (PCS Technical Support 1998)
  10. [ShowIf] if the varieable exists (Mike Eberly 1998)
>I understand that normally you would put the [showif] context followed >by the equation. >ex: [ShowIf [wogroup1datarq]=Mustang]Car[/ShowIf] >However, there will not always be an existing variable called >[wogroup1datarq]. Instead, I would like to [showif] if the variable >[wogroup1datarq] exists. How can I do this? > >MikeI don't really understand what you mean, so I give you two suggestions:If you want to show something if the [wogroup1datarq] is not empty:[ShowIf [wogroup1datarq]!]Your fancy stuff here![/ShowIf]If you want to show something if the [wogroup1datarq] is not defined:[ShowIf [wogroup1datarq]![raw][wogroup1datarq][/raw]]Your fancy stuff here![/ShowIf] ************************************************************* Christer Olsson Stora Nygatan 21 Phone +46 40 791 50 Ljusa Ideer AB S-211 37 Malmoe Fax +46 40 97 99 77 Sweden http://www.ljusaideer.se Christer Olsson

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:

Referrer (2000) Duplicate Cart ID (2001) Multiple Passwords (1997) system crashes, event log (1997) WebCatalog stalls (1998) Press Release hit the NewsWire!!! (1997) [addlineitems] display (1997) WebCatalog/Mac 2.1b2 New Features (1997) Document Contains No Data! (1997) Can I invoke an ssi plugin from within a webcat page (1997) Re:quit command on NT (1997) Help name our technology! (1997) RAM variables (1997) test (2000) Emailer tracking (1997) Grouping fields problem (1998) [unitshipcost] values do NOT write to orderfile (1998) t or f (1997) Some Questions (1997) [WebDNA] Topic... (2004)