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 = 105130
interpreted = N
texte = 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 exceptthat it is a unique (and unlikely) character. In other words, it can beany 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 textit contains.hth,Donovan-- Donovan BrookeEuca Design Center[Practical-Ethical-Efficient]www.euca.usegg.bzartglass-forum.com
Associated Messages, from the most recent to the oldest:
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 exceptthat it is a unique (and unlikely) character. In other words, it can beany 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 textit contains.hth,Donovan-- Donovan BrookeEuca Design Center[Practical-Ethical-Efficient]www.euca.usegg.bzartglass-forum.com
Donovan Brooke
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:
HTML encoding in URLs (1997)
WebCat2b15MacPlugIn - [authenticate] not [protect] (1997)
Protect vs Authenicate (1997)
4.5.1 download link (2003)
Snake Bites (1997)
[SearchString] usage (1997)
RE: Problems with dbcatalog.exe (1997)
HELP WITH DATES (1997)
Stopping bad HTML propagation ? (1997)
WebCatalog 2.0 & WebDNA docs in HTML ... (1997)
[WebDNA] remove html comments (2009)
Error reading data -1 (1997)
WebCatalog 3.0.8 is on FTP... (2000)
[OT] Good javascript book? (2002)
WebCat2b15MacPlugin - showing [math] (1997)
Mail Service Dead (1998)
Virtual hosting and webcatNT (1997)
Reversed words (1997)
notification solutions (1997)
ShowIf helper? (1998)