Re: [WebDNA] Check if variable is blank or is raw or third condition
This WebDNA talk-list message is from 2010
It keeps the original formatting.
numero = 105134
interpreted = N
texte = Thank you all for your prompt responses! I ended up using Donovan's methodbecause it was the most concise and closest to my original intent. Still alittle confused as to why there is an extra pipe next to the hideif but itworks! And thank you Govinda for showing me the proper syntax to format amore complex if statement.Mike SOn 4/9/10 6:40 PM, "Donovan Brooke"
wrote:> Mike Sargent wrote:> [snip]>> [hideif ||[raw][t_username][/raw]|^|[t_username]|]> [snip]> > > Hi Mike,> The pipe symbol in this hack doesn't really mean anything special except> that it is a unique (and unlikely) character. In other words, it can be> any character really.> > Govinda's example is more typical of an "official" OR statement..> however, for your needs, you could extend the above statment to:> > [hideif ||[url][raw][t_username][/raw][/url]|[url]Custom> Text[/url]|^|[url][t_username][/url]|]> > [/hideif]> > > The above now looks for 3 exact value matches (blank, raw variable name,> and your custom text). If it finds any of the 3 it will hide whatever text> it contains.> > hth,> Donovan> >
Associated Messages, from the most recent to the oldest:
Thank you all for your prompt responses! I ended up using Donovan's methodbecause it was the most concise and closest to my original intent. Still alittle confused as to why there is an extra pipe next to the hideif but itworks! And thank you Govinda for showing me the proper syntax to format amore complex if statement.Mike SOn 4/9/10 6:40 PM, "Donovan Brooke" wrote:> Mike Sargent wrote:> [snip]>> [hideif ||[raw][t_username][/raw]|^|[t_username]|]> [snip]> > > Hi Mike,> The pipe symbol in this hack doesn't really mean anything special except> that it is a unique (and unlikely) character. In other words, it can be> any character really.> > Govinda's example is more typical of an "official" OR statement..> however, for your needs, you could extend the above statment to:> > [hideif ||[url][raw][t_username][/raw][/url]|[url]Custom> Text[/url]|^|[url][t_username][/url]|]> > [/hideif]> > > The above now looks for 3 exact value matches (blank, raw variable name,> and your custom text). If it finds any of the 3 it will hide whatever text> it contains.> > hth,> Donovan> >
Mike Sargent
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:
Progress !! WAS: Trouble with formula.db (1997)
Date field search needs ... (1998)
Credit card processing - UK (1997)
Webcat run amuk (2002)
WC 2.0 frames feature (1997)
Performance Issue (2000)
OK, here goes... (1997)
Not really WebCat - need HTML Grider (1997)
redirect with frames (1997)
Database (2000)
multiple selected Checkboxes (1998)
Transfering [text] variables (2000)
Help with [LineItems] in [OrderFile] on ShoppingCart.tpl (2003)
Linux ODBC and the ODBC Bridge (2000)
[WebDNA] User - Group - permissions (2009)
quick GREP question (2001)
ShowNext Command (1997)
Sku numbers (1997)
(more) TCPConnect / Current Temperature (2004)
showcart is slow (1998)