Re: multi condition with showif
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 62872
interpreted = N
texte = There is a "hack" as I call it - and to be honest, I don't recall exactly how it goes as I've had no luck with it. Donovan has posted it before and ISTR that you use any unique character for the condition, [showif [something] | [something]] ? Maybe he'll pop on here and supply that answer.What's your condition and I'll show you the IF/THEN to use for it if you like.GaryAt 11:37 AM 8/28/2005, you wrote:>Gary,>Thanks for the input.>Yes, I would want both conditions to be met, if nesting showif or not.>Is there a shortcut within one [showif] ?>>I never have any luck with IF/THEN/ELSE>>Thanks,>sfb>>>>On Aug 28, 2005, at 12:31 PM, Gary Krockover wrote:>>>Hi Stephen,>>>>You'll have problems with nesting because remember, the 1st condition must be met before it even gets to the 2nd condition so the "or" factor isn't an option. Use an IF/THEN/ELSE, much cleaner:>>>>http://webdna.smithmicro.com/ref/pages.html?context=IfContext.html>>>>Gary>>>>At 11:12 AM 8/28/2005, you wrote:>>>Hi All,>>>Can a [showif] command have more than one condition or must they be nested to function?>>>If so, then how?>>>>>>ex: [showif [conditionA]=1 and [conditionB]=1]>>>code,code,code>>>[/showif]>>>>>>or>>>>>>[showif [conditionA]=1]>>>[showif [conditionB]=1]>>>code,code,code>>>[/showif]>>>[/showif]>>>>>>Thanks for any insight.>>>>>>Stephen F Braun>>>sbraun1@twcny.rr.com>>>>>>------------------------------------------------------------->>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 >>Web Archive of this list is at: http://webdna.smithmicro.com/>>>------------------------------------------------------------->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 >Web Archive of this list is at: http://webdna.smithmicro.com/-------------------------------------------------------------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 Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
There is a "hack" as I call it - and to be honest, I don't recall exactly how it goes as I've had no luck with it. Donovan has posted it before and ISTR that you use any unique character for the condition, [showif [something] | [something]] ? Maybe he'll pop on here and supply that answer.What's your condition and I'll show you the IF/THEN to use for it if you like.GaryAt 11:37 AM 8/28/2005, you wrote:>Gary,>Thanks for the input.>Yes, I would want both conditions to be met, if nesting showif or not.>Is there a shortcut within one [showif] ?>>I never have any luck with IF/THEN/ELSE>>Thanks,>sfb>>>>On Aug 28, 2005, at 12:31 PM, Gary Krockover wrote:>>>Hi Stephen,>>>>You'll have problems with nesting because remember, the 1st condition must be met before it even gets to the 2nd condition so the "or" factor isn't an option. Use an IF/THEN/ELSE, much cleaner:>>>>http://webdna.smithmicro.com/ref/pages.html?context=IfContext.html>>>>Gary>>>>At 11:12 AM 8/28/2005, you wrote:>>>Hi All,>>>Can a [showif] command have more than one condition or must they be nested to function?>>>If so, then how?>>>>>>ex: [showif [conditionA]=1 and [conditionB]=1]>>>code,code,code>>>[/showif]>>>>>>or>>>>>>[showif [conditionA]=1]>>>[showif [conditionB]=1]>>>code,code,code>>>[/showif]>>>[/showif]>>>>>>Thanks for any insight.>>>>>>Stephen F Braun>>>sbraun1@twcny.rr.com>>>>>>------------------------------------------------------------->>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 >>Web Archive of this list is at: http://webdna.smithmicro.com/>>>------------------------------------------------------------->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 >Web Archive of this list is at: http://webdna.smithmicro.com/-------------------------------------------------------------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 Web Archive of this list is at: http://webdna.smithmicro.com/
Gary Krockover
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:
THE ANSWER - why .HTML pages no processing? (2000)
[ConvertChars] problem (1997)
Extended [ConvertChars] (1997)
Limit on nested [ShowIf]'s? (1997)
WebMerchant 1.6 and https (1997)
Here we go again... (2006)
WebCat2b13 Mac plugin - [sendmail] and checkboxes (1997)
WebCat2.0 [format thousands .0f] no go (1997)
WCS Newbie question (1997)
[OT] Javasript Help (2006)
[OT] Indexing of dynamic web sites (2003)
unable to launch acgi in WebCat (1997)
include bug????? (1997)
Re1000001: Setting up shop (1997)
Opinion: [input] should be called [output] ... (1997)
[WebDNA] MD5 Hash issue (2009)
Sendmail html/text problem (2003)
orders (1998)
Using Applescript to process WebCatalog functions (1998)
WebCat2 several catalogs? (1997)