Re: Showif for mulitple variations
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 14738
interpreted = N
texte = I don't mean to be rude, but this somehow seems MORE complicated then itneeds to be...( I was kind of looking for a one line solution)(Although you do get +2 points for the creative use of the [MATH] tag)The Great BrianB----------------------------------------------Protect your right to own and arm bears.--------------------------------------------------------From: Christer Olsson
To: WebDNA-Talk@smithmicro.com Subject: Re: Showif for mulitple variations Date: Sat, 15 Nov 1997 15:28:17 >Is there some easy way to do something like:>>[showif [SKU]=47,58,112,213] blah,blah,blah [/showif]>>right now I am doing:>>[showif [SKU]=47] blah,blah,blah [/showif]>[showif [SKU]=58] blah,blah,blah [/showif]>[showif [SKU]=112] blah,blah,blah [/showif]>[showif [SKU]=213] blah,blah,blah [/showif][math show=F]Hit=1[/math][showif [SKU]=47][math show=F]Hit=Hit+1[/math][/show][showif [SKU]=58][math show=F]Hit=Hit+1[/math][/show][showif [SKU]=112][math show=F]Hit=Hit+1[/math][/show][showif [SKU]=113][math show=F]Hit=Hit+1[/math][/show][showif [math show=F]Hit[/math]>1]Your fancy stuff here[/show]
Associated Messages, from the most recent to the oldest:
I don't mean to be rude, but this somehow seems MORE complicated then itneeds to be...( I was kind of looking for a one line solution)(Although you do get +2 points for the creative use of the [math] tag)The Great BrianB----------------------------------------------Protect your right to own and arm bears.--------------------------------------------------------From: Christer Olsson To: WebDNA-Talk@smithmicro.com Subject: Re: Showif for mulitple variations Date: Sat, 15 Nov 1997 15:28:17 >Is there some easy way to do something like:>>[showif [SKU]=47,58,112,213] blah,blah,blah [/showif]>>right now I am doing:>>[showif [SKU]=47] blah,blah,blah [/showif]>[showif [SKU]=58] blah,blah,blah [/showif]>[showif [SKU]=112] blah,blah,blah [/showif]>[showif [SKU]=213] blah,blah,blah [/showif][math show=F]Hit=1[/math][showif [SKU]=47][math show=F]Hit=Hit+1[/math][/show][showif [SKU]=58][math show=F]Hit=Hit+1[/math][/show][showif [SKU]=112][math show=F]Hit=Hit+1[/math][/show][showif [SKU]=113][math show=F]Hit=Hit+1[/math][/show][showif [math show=F]Hit[/math]>1]Your fancy stuff here[/show]
Brian B. Burton
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:
This list needs a digest: rant, rave... (1997)
ShowIf, If, XML Syntax.... (2004)
Math with Time (1997)
Uh...can someone help me out with the b10? (1997)
Re[2]: Next X hits (1996)
WebCat2b13MacPlugIn - syntax to convert date (1997)
Another search question please... (1998)
Help! WebCat2 bug (1997)
Sort Order on a page search (1997)
[OT] ssh user@domain.com (2004)
How true is this? (1999)
cc auth with [purchase] (1998)
Dismissing dialogs (was 2.1b3 --> way slow) (1997)
RE: Problems reading files created by WC (1997)
Whats going on with my SERIAL NUMBER??? (1998)
Convert words (2002)
[WebDNA] Code - API - Long URL Expander (2013)
MacAuthorize order data fields WAS:How To question... (1997)
WebDNA 6.0 NOT Configured fot accept domain (2006)
acgi to plugin migration problems (2000)