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-485302591 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit 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]"="") | ("[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'. ------------ Govinda govinda.webdnatalk@gmail.com --Apple-Mail-10-485302591 Content-Type: text/html; charset=US-ASCII Content-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'.

=



= --Apple-Mail-10-485302591-- 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)
--Apple-Mail-10-485302591 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit 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]"="") | ("[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'. ------------ Govinda govinda.webdnatalk@gmail.com --Apple-Mail-10-485302591 Content-Type: text/html; charset=US-ASCII Content-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'.

=



= --Apple-Mail-10-485302591-- Govinda

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:

unable to launch acgi in WebCat (1997) random prob (2003) Converting characters to numbers ... (1997) converting tabs (1997) many-to-one problem (1998) Web*3 virtual hosting Webcatalog problem + Vicom bonus (1998) [ShowIf] and empty fields (1997) error message (sorry) (2000) cookies and [returnraw] (1997) Re2: frames & carts (1997) RAM crash (1998) New Mac Emailer... (1997) [protect] on NT? (1997) Setting up shop (1997) [WebDNA] Converting minutes to hours (2008) migrating from MacOS to unix (2000) WCS Newbie question (1997) Almost a there but..bye bye NetCloak (1997) format problem on NT? (1997) Multiple Ad databases? (1997)