Re: Or Operator

This WebDNA talk-list message is from

2005


It keeps the original formatting.
numero = 63403
interpreted = N
texte = The OR operator is available in the [if] context. Each test case must=20= be enclosed in paratheses () and the OR operator (vertical bar, | )=20 goes between them. Try something like: [if ([url][ICM_Price1][/url]=3D0.02)|([url][ICM_Price1][/url]=3D0.03)] [then] [!]-- nothing happens --[/!] [/then] [else] [!]-- price was not 0.02 or 0.03, so additional code goes here=20 --[/!] [/else] [/if] ------ Daryl Mitchell, E-Business Specialist PW Group Ltd. =B7 Saskatoon, SK CANADA Tel: (306) 665-3557 =B7 Fax (306) 664-0094 d.mitchell@pwgroup.ca =B7 www.pwgroup.ca On Nov 14, 2005, at 2:47 PM, Ki Song wrote: > Simple question: > > > How do I do a hideif if a value is equal to 0.02 or 0.03? > > Sample Code: > [hideif [url][ICM_Price1][/url]=3D0.02 OR 0.03] > .... > [/hideif] > > How do I accomplish the or operator? > > > > ------------------------------------------------------------- > 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=20 > > 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:

    
  1. Re: Or Operator ( Donovan Brooke 2005)
  2. Re: Or Operator ( Daryl Mitchell 2005)
  3. Re: Or Operator ( "Nitai @ ComputerOil" 2005)
  4. Or Operator ( Ki Song 2005)
The OR operator is available in the [if] context. Each test case must=20= be enclosed in paratheses () and the OR operator (vertical bar, | )=20 goes between them. Try something like: [if ([url][ICM_Price1][/url]=3D0.02)|([url][ICM_Price1][/url]=3D0.03)] [then] [!]-- nothing happens --[/!] [/then] [else] [!]-- price was not 0.02 or 0.03, so additional code goes here=20 --[/!] [/else] [/if] ------ Daryl Mitchell, E-Business Specialist PW Group Ltd. =B7 Saskatoon, SK CANADA Tel: (306) 665-3557 =B7 Fax (306) 664-0094 d.mitchell@pwgroup.ca =B7 www.pwgroup.ca On Nov 14, 2005, at 2:47 PM, Ki Song wrote: > Simple question: > > > How do I do a hideif if a value is equal to 0.02 or 0.03? > > Sample Code: > [hideif [url][ICM_Price1][/url]=3D0.02 OR 0.03] > .... > [/hideif] > > How do I accomplish the or operator? > > > > ------------------------------------------------------------- > 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=20 > > 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/ Daryl Mitchell

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:

HomePage Caution (1997) BBEdit and WebCatalog 2.0? (1997) Problems passing [SKU] with $Replace in 2.0 (1997) A Global Variable (1997) [WebDNA] [input] v. [sendmail] question (2009) Encrypt broken on Mac 3.05b13?? (2000) Press Release hit the NewsWire!!! (1997) [SMSI] WebDNA is too good to go away! (2006) Emailer errors (1997) weening me off overwriting form variables. John Peacock? (2000) NumFound (1999) Database Options (1997) Need help... (1997) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) Math inside [showif] (1998) Multiple security dbs (1997) Can [writefile] files be served thru webcat? (2000) Non-repeating Random Numbers (2002) OT: Unix question (2003) wc 2 pro users - sites, quotes wanted (1997)