Re: ShowIf variables

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 12228
interpreted = N
texte = >>Is there a way to set set up the [ShowIf] tag as an or statement? >> >>As in [ShowIf [NumFound]=3 0r 7] >> > >Not possible, but you can do repeated showif's. And if needed you can do >nested showif's. Meet condition 1 then meet condition 2 before showing >what you want. Your request needs repeated showif's like this.... > >[showif [numfound]=3] >what you what to display if numfound =3 >[/showif] >[showif [numfound]=7] >what you what to display if numfound =7 >[/showif]An alternative way to do this, and avoid a lot of double typing is to set a variable (and this *must* be numeric!). Like:[showif [numfound]=3] [/showif][showif [numfound]=7] [/showif][showif [math]ShowIt=1[/math]] What you want to display if numfound = 3 or 7 [/showif]The varaible is set inside a comment tag for not displaying it in the browser. ************************************************************* Christer Olsson Stora Nygatan 21 Phone +46 40 791 50 Art director S-211 37 Malmoe Fax +46 40 97 99 77 Ljusa Ideer AB Sweden http://www.ljusaideer.se Associated Messages, from the most recent to the oldest:

    
  1. ShowIf variables (Trevor Crist 1997)
  2. Re: ShowIf variables (Christer Olsson 1997)
  3. Re: ShowIf variables (grichter@panavise.com (Gary Richter) 1997)
>>Is there a way to set set up the [showif] tag as an or statement? >> >>As in [ShowIf [NumFound]=3 0r 7] >> > >Not possible, but you can do repeated showif's. And if needed you can do >nested showif's. Meet condition 1 then meet condition 2 before showing >what you want. Your request needs repeated showif's like this.... > >[showif [numfound]=3] >what you what to display if numfound =3 >[/showif] >[showif [numfound]=7] >what you what to display if numfound =7 >[/showif]An alternative way to do this, and avoid a lot of double typing is to set a variable (and this *must* be numeric!). Like:[showif [numfound]=3] [math]ShowIt=1[/math]> [/showif][showif [numfound]=7] [math]ShowIt=1[/math]> [/showif][showif [math]ShowIt=1[/math]] What you want to display if numfound = 3 or 7 [/showif]The varaible is set inside a comment tag for not displaying it in the browser. ************************************************************* Christer Olsson Stora Nygatan 21 Phone +46 40 791 50 Art director S-211 37 Malmoe Fax +46 40 97 99 77 Ljusa Ideer AB 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:

ReturnRaw, download link for mov (2007) P1: How to make webcatalog more stable. - LONG (1999) Secure Server (1997) [showif],[refferer],[include] in errormessages.db (2002) [searchString] (1997) Database changes (1998) more [sendmail] woes.. (2000) ACGI processing for .html (1997) Associative lookup style? + bit more (1997) Major Security Hole (1998) TCPConnect & Post (2002) typhoon ? (2003) [OT] JavaScript Error (2002) New iMac, now ... how do I make webdna serve .html files? (2005) can we get string variables? (1998) Almost a there but..bye bye NetCloak (1997) [AppendFile] problem (WebCat2b13 Mac .acgi) (1997) Convert Char (2001) Fun with Dates - finally resolved but.... (1997) PSC recommends what date format yr 2000??? (1997)