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 method because it was the most concise and closest to my original intent. Still a little confused as to why there is an extra pipe next to the hideif but it works! And thank you Govinda for showing me the proper syntax to format a more complex if statement. Mike S On 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:

    
  1. Re: [WebDNA] Check if variable is blank or is raw or third condition (Govinda 2010)
  2. Re: [WebDNA] Check if variable is blank or is raw or third condition (Mike Sargent 2010)
  3. Re: [WebDNA] Check if variable is blank or is raw or third condition (Kenneth Grome 2010)
  4. Re: [WebDNA] Check if variable is blank or is raw or third condition (Donovan Brooke 2010)
  5. Re: [WebDNA] Check if variable is blank or is raw or third condition (Govinda 2010)
  6. [WebDNA] Check if variable is blank or is raw or third condition (Mike Sargent 2010)
Thank you all for your prompt responses! I ended up using Donovan's method because it was the most concise and closest to my original intent. Still a little confused as to why there is an extra pipe next to the hideif but it works! And thank you Govinda for showing me the proper syntax to format a more complex if statement. Mike S On 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:

Exists? (1997) RE: New WebCatalog Version !!! (1997) Text data with spaces in them... (1997) Re1000001: Setting up shop (1997) bug in Webcat OSX (1999) Progress !! WAS: Trouble with formula.db (1997) off-topic - printinglib 68K (1997) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) questions on variations of Ken's [text multi=T]var1=&var2=[/text] (1999) subscribe (2002) [WebDNA] Cart Mode hook issue (2018) lookup (1998) blank page from template (1997) Emailer tracking (1997) Nested vs conditional (1997) OT: Poll Results (2002) RE: File Uploads: WebCat/SiteEdit (1998) Web Delivery Page concept (1997) WebCat2: Items xx to xx shown, etc. (1997) Setting up shop (1997)