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:

WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997) writing db to disk (1997) orders being printed (1998) [WebDNA] Advanced search 'rq' problem (2013) shownext problems & formvariables (1998) RAM variables (1997) international time (1997) using showpage and showcart commands (1996) FAX orders (1996) Navigator 4.01 (1997) EIMS Problems (1997) Date Help (2004) Cart questions (1997) WCS Newbie question (1997) Dismissing dialogs (was 2.1b3 --> way slow) (1997) random prob (2003) Arrays (2000) Word Break (1999) Seeking Better Display of results... (1997) Line items in table cells (1997)