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 avariable (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:
>>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 avariable (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:
Can you do this??? and other stuff (1997)
Goodbyes (2007)
formulas.db ?? (1998)
send mail problem? (1997)
Re:Emailer and encryption (1997)
error count with $purchase (1997)
Code database (1998)
message forum question (2005)
canEmail? (1998)
WebCatalog Technical Reference (1997)
[WebDNA] WebDNA 7 (2011)
WC Database Format (1997)
Bugs in IE 6.0 ? (2003)
[WebDNA] Press Release (2008)
Which GUI HTML editors work with WC ? (1997)
NetForms for mail, sorry (1998)
OT (stupid redirect/refresh question) (2002)
HomePage Caution (1997)
search/showif issues (2000)
Requiring that certain fields be completed (1997)