[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 = 105128
interpreted = N
texte = > This message is in MIME format. Since your mail reader does not understandthis format, some or all of this message may not be legible.--B_3353679942_3187602Content-type: text/plain;charset="US-ASCII"Content-transfer-encoding: 7bitTo be clear here is exactly what I'm trying to do in one hideif (ifpossible): 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.Please someone clarify or break this down for me.The Webdna Syntax tutorial video part 3 of 4 talks about a hideif contextthat hides content based on a variable being blank or raw.The code is as follows:[hideif ||[raw][t_username][/raw]|^|[t_username]|]Basically saying if [t_username] is not initialized we're going to hideeverything.I understand that it basically amounts to comparing |[t_username]| thatcontains |[t_username]| but I cannot figure out why the extra pipe characteris on the left. I've also seen it this way:[hideif |[raw][t_username][/raw]||^|[t_username]|]Do they both function exactly the same? Are they all pipe delimiters or doesone refer to an OR?I would like to modify the code to contain an OR in the same hideif to alsocompare [t_username]^Exactly this textI'm stuck on how to do this due to my confusion with the syntax.Thanks in advance!Mike SMike SargentWeb DesignerEarthcare Technologies, Inc.7406 Alban Station Court Suite B-210Springfield, VA 22150Phone 703-644-5399Fax 703-644-5384--B_3353679942_3187602Content-type: text/html;charset="US-ASCII"Content-transfer-encoding: quoted-printable
Check if variable is blank or is raw or third conditionTo be cl=ear here is exactly what I'm trying to do in one hideif (if possible): 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.
Please someone clarify or break this down for me.
The Webdna Syntax tutorial video part 3 of 4 talks about a hideif context t=hat hides content based on a variable being blank or raw.
The code is as follows:
[hideif ||[raw][t_username][/raw]|^|[t_username]|]
Basically saying if [t_username] is not initialized we're going to hide eve=rything.
I understand that it basically amounts to comparing |[t_username]| that con=tains |[t_username]| but I cannot figure out why the extra pipe character is= on the left. I've also seen it this way:
[hideif |[raw][t_username][/raw]||^|[t_username]|]
Do they both function exactly the same? Are they all pipe delimiters or doe=s one refer to an OR?
I would like to modify the code to contain an OR in the same hideif to also= compare [t_username]^Exactly this text
I'm stuck on how to do this due to my confusion with the syntax.
Thanks in advance!
Mike S
Mike Sargent
Web Designer
Eart=hcare Technologies, Inc.
7406 Alban Station Court Suite B-210
Springfield, VA 22150
Phone 703-644-5399
Fax 703-644-5384
--B_3353679942_3187602--
Associated Messages, from the most recent to the oldest:
> This message is in MIME format. Since your mail reader does not understandthis format, some or all of this message may not be legible.--B_3353679942_3187602Content-type: text/plain;charset="US-ASCII"Content-transfer-encoding: 7bitTo be clear here is exactly what I'm trying to do in one hideif (ifpossible): 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.Please someone clarify or break this down for me.The Webdna Syntax tutorial video part 3 of 4 talks about a hideif contextthat hides content based on a variable being blank or raw.The code is as follows:[hideif ||
[raw][t_username][/raw]|^|[t_username]|]Basically saying if [t_username] is not initialized we're going to hideeverything.I understand that it basically amounts to comparing |[t_username]| thatcontains |[t_username]| but I cannot figure out why the extra pipe characteris on the left. I've also seen it this way:[hideif |
[raw][t_username][/raw]||^|[t_username]|]Do they both function exactly the same? Are they all pipe delimiters or doesone refer to an OR?I would like to modify the code to contain an OR in the same hideif to alsocompare [t_username]^Exactly this textI'm stuck on how to do this due to my confusion with the syntax.Thanks in advance!Mike SMike SargentWeb DesignerEarthcare Technologies, Inc.7406 Alban Station Court Suite B-210Springfield, VA 22150Phone 703-644-5399Fax 703-644-5384--B_3353679942_3187602Content-type: text/html;charset="US-ASCII"Content-transfer-encoding: quoted-printable
Check if variable is blank or is raw or third conditionTo be cl=ear here is exactly what I'm trying to do in one hideif (if possible): 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.
Please someone clarify or break this down for me.
The Webdna Syntax tutorial video part 3 of 4 talks about a hideif context t=hat hides content based on a variable being blank or raw.
The code is as follows:
[hideif ||[raw][t_username][/raw]|^|[t_username]|]
Basically saying if [t_username] is not initialized we're going to hide eve=rything.
I understand that it basically amounts to comparing |[t_username]| that con=tains |[t_username]| but I cannot figure out why the extra pipe character is= on the left. I've also seen it this way:
[hideif |[raw][t_username][/raw]||^|[t_username]|]
Do they both function exactly the same? Are they all pipe delimiters or doe=s one refer to an OR?
I would like to modify the code to contain an OR in the same hideif to also= compare [t_username]^Exactly this text
I'm stuck on how to do this due to my confusion with the syntax.
Thanks in advance!
Mike S
Mike Sargent
Web Designer
Eart=hcare Technologies, Inc.
7406 Alban Station Court Suite B-210
Springfield, VA 22150
Phone 703-644-5399
Fax 703-644-5384
--B_3353679942_3187602--
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:
Browser Caching (2003)
Showif, Hideif reverse logic ? (1997)
Two options to consider (2008)
RE: Error reading data -1 (1997)
A question on sub-categories (1997)
Using EIMS instead of Emailer (1998)
New WebCatalog Version !!! (1997)
test (2006)
OT: Raid Software on OSX (2003)
URL for Discussion Archive (1997)
WebTEN vs webSTAR (1998)
WebCatalog 2.0 & WebDNA docs in HTML ... (1997)
Date sorting (1997)
[SHOWNEXT] Examples (1997)
Small Bug: ErrorLog.txt/[FORMVARIABLES]/[ORDERFILE] (1998)
[SHOWIF]s and empty arguments (1997)
formulas.db ?? (1998)
Setting up WebCatalog with Retail Pro data (1996)
TemplateCacheSize preference! (1998)
OT (maybe) Setting up local (non internet) test computers (2000)