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 = 105129
interpreted = N
texte = --Apple-Mail-10-485302591Content-Type: text/plain;charset=US-ASCII;format=flowed;delsp=yesContent-Transfer-Encoding: 7bitOn Apr 9, 2010, at 5:45 PM, Mike Sargent wrote:> Hide everything if either of these 3 conditions are met: > [t_username] is blank OR [t_username] is [t_username] OR > [t_username]^Exactly this text.[if ("[URL][t_username][/URL]"="") | ("[URL][t_username][/URL]"="[URL] [raw][t_username][/raw][/URL]") | ("[URL][t_username][/ URL]"^"[URL]Exactly this text[/URL]")][then][!]---don't do anything.. i.e. hide ---[/!][/then][else]don't hide because [raw][t_username][/raw] does not meet any of those 3 conditions[/else][/if]there are other ways of doing it.. like with hideifs and clever pipes.. but I like the above. Used as I did in that [if]...[/if].. the pipe means 'OR'.------------Govindagovinda.webdnatalk@gmail.com--Apple-Mail-10-485302591Content-Type: text/html;charset=US-ASCIIContent-Transfer-Encoding: quoted-printable
On Apr 9, 2010, =at 5:45 PM, Mike Sargent wrote:
Hide =everything if either of these 3 conditions are met: [t_username] is =blank OR [t_username] is [t_username] OR [t_username]^Exactly this =text.
[if ("[URL][t_username][/URL]"=3D"") | =("[URL][t_username][/URL]"=3D"[URL][raw][t_username][/raw][/URL]") | =("[URL][t_username][/URL]"^"[URL]Exactly this =text[/URL]")][then]
=[!]---don't do anything.. i.e. hide ---[/!]
=[/then]
[else]
=don't hide because [raw][t_username][/raw] does not meet any of =those 3 conditions
=[/else]
[/if]
there are =other ways of doing it.. like with hideifs and clever pipes.. = but I like the above. Used as I did in that [if]...[/if].. = the pipe means 'OR'.
On Apr 9, 2010, =at 5:45 PM, Mike Sargent wrote:
Hide =everything if either of these 3 conditions are met: [t_username] is =blank OR [t_username] is [t_username] OR [t_username]^Exactly this =text.
there are =other ways of doing it.. like with hideifs and clever pipes.. = but I like the above. Used as I did in that
[if]...[/if].. = the pipe means 'OR'.
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...