Re: Showif Or

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 28507
interpreted = N
texte = >I'm still working on my banner rotation system and have gotten >through the appending multiple values using [formvariables] as >suggested by this list, but now I have another question. I'm >running WC 2.13 on Web* and want to know if it's possible to use >[showif] to choose from more than one possible choice? Can I >combine the two [showif] statements below, am I forced to have >individual ones, or is there another way that I'm just not seeing? > >[showif [thisurl]^/food/] >some webdna >[/showif] > >[showif [thisurl]^/rst/] >same webdna as above >[/showif]There is a way to reduce the duplication of interior webdna that you have above: either use an [include] to pull in the same webdna twice, or use the following technique:[math]wasTrue=0[/math][showif [thisurl]^/food/] [math]wasTrue=1[/math] [/showif][showif [thisurl]^/rst/] [math]wasTrue=1[/math] [/showif][showif [math]wasTrue[/math]=1] some webdna just one time [/showif]Technical Support ********************************** Smith Micro, Internet Solutions Div | eCommerce (WebCatalog) 16855 West Bernardo Drive, #380 | ------------------------- San Diego, CA 92127 | Software & Site Development WebCatalog Support: (858) 675-0632 | http://www.smithmicro.com Fax: (858) 675-0372 **********************************------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Associated Messages, from the most recent to the oldest:

    
  1. Re: Showif Or (Chuck Rice 2000)
  2. Re: Showif Or (WebDNA Support 2000)
  3. Re: Showif Or (jpeacock@univpress.com 2000)
  4. Showif Or (Andy Mowrey 2000)
>I'm still working on my banner rotation system and have gotten >through the appending multiple values using [formvariables] as >suggested by this list, but now I have another question. I'm >running WC 2.13 on Web* and want to know if it's possible to use >[showif] to choose from more than one possible choice? Can I >combine the two [showif] statements below, am I forced to have >individual ones, or is there another way that I'm just not seeing? > >[showif [thisurl]^/food/] >some webdna >[/showif] > >[showif [thisurl]^/rst/] >same webdna as above >[/showif]There is a way to reduce the duplication of interior webdna that you have above: either use an [include] to pull in the same webdna twice, or use the following technique:[math]wasTrue=0[/math][showif [thisurl]^/food/] [math]wasTrue=1[/math] [/showif][showif [thisurl]^/rst/] [math]wasTrue=1[/math] [/showif][showif [math]wasTrue[/math]=1] some webdna just one time [/showif]Technical Support ********************************** Smith Micro, Internet Solutions Div | eCommerce (WebCatalog) 16855 West Bernardo Drive, #380 | ------------------------- San Diego, CA 92127 | Software & Site Development WebCatalog Support: (858) 675-0632 | http://www.smithmicro.com Fax: (858) 675-0372 **********************************------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to WebDNA 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:

Problems when user hit back (2000) Nav. 4 probs with cart - Serious problem (1997) WebCat2b13MacPlugIn - [shownext method=post] ??? (1997) Can I invoke an ssi plugin from within a webcat page (1997) WC TableGrinder (1997) Sendmail doesn't (was Queertrons?) (1997) stumped (2001) Deadlock (1999) A few questions. . . (1997) Custom WebCat Prefs ... (1997) WebCat2b15MacPlugIn - [authenticate] not [protect] (1997) [CART] (1997) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) PCS Frames (1997) UPS Shipping Primer (2003) WebCatalog stalls (1998) GuestBook example (1997) Problems getting parameters passed into email. (1997) Giving out error pages (1997) Caching pages...again (2001)