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:

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)