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, | )=20goes 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 SpecialistPW Group Ltd. =B7 Saskatoon, SK CANADATel: (306) 665-3557 =B7 Fax (306) 664-0094d.mitchell@pwgroup.ca =B7 www.pwgroup.caOn 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:
The OR operator is available in the [if] context. Each test case must=20=be enclosed in paratheses () and the OR operator (vertical bar, | )=20goes 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 SpecialistPW Group Ltd. =B7 Saskatoon, SK CANADATel: (306) 665-3557 =B7 Fax (306) 664-0094d.mitchell@pwgroup.ca =B7 www.pwgroup.caOn 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:
where to put code (1998)
FW: Rollovers (1999)
[format] (1998)
combining strings (1997)
Trouble with formula.db (1997)
[group] ? (1997)
Practice runs ? (1997)
Showif, Hideif reverse logic ? (1997)
[BULK] [WebDNA] Language References (2011)
More on the email templates (1997)
transferring values (1998)
Help! WebCat2 bug (1997)
WebCat2.0 [format thousands .0f] no go (1997)
Major Security Hole (solution with Welcome) (1998)
[WebDNA] [text scope=global] (2014)
Multiple Pulldowns (1997)
ShowNext Page Style (2003)
Re:no [search] with NT (1997)
No Answer on Web Merchant Problem? (2001)
WebCat2b13MacPlugIn - [showif][search][/showif] (1997)