Re: [defined]ish
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 13526
interpreted = N
texte = On the subject of Re: [defined]ish hath scrawled Grant Hulbert:>If you set a variable fred=12, then using [fred] will display 12. If>a variable named fred does not exist, then [fred] will display>literally [fred]. This is done purposely so that web pages with text>button-bars won't mess up:>[ Home | About Us | Guestbook ] should display as plain text even>though it has those [ in it.>>So to check for the 'non-existence' of a variable, you can just check>to see if its value is the same as its raw text:>>[showif [fred]=[raw][fred][/raw]]...variable fred doesn't exist[/showif]>>Notice you need the [raw] context because [showif [fred]=[fred]] will>always be true: [showif 12=12] or [showif [fred]=[fred]] is always>true.OK, this makes sense. Strikes me as a bit awkward, but it'll do. Thanks!spud. ------------------------------------------------------------------------- a.h.s. boy ---------------------- manifesto overlord, dada typographics spud@nothingness.org ------- http://www.nothingness.org/Now featuring Social Anarchism and the Situationist International archives J'suis l'enfant de l'etat, et je me bats contre ca
Associated Messages, from the most recent to the oldest:
On the subject of Re: [defined]ish hath scrawled Grant Hulbert:>If you set a variable fred=12, then using [fred] will display 12. If>a variable named fred does not exist, then [fred] will display>literally [fred]. This is done purposely so that web pages with text>button-bars won't mess up:>[ Home | About Us | Guestbook ] should display as plain text even>though it has those [ in it.>>So to check for the 'non-existence' of a variable, you can just check>to see if its value is the same as its raw text:>>[showif [fred]=
[raw][fred][/raw]]...variable fred doesn't exist[/showif]>>Notice you need the
[raw] context because [showif [fred]=[fred]] will>always be true: [showif 12=12] or [showif [fred]=[fred]] is always>true.OK, this makes sense. Strikes me as a bit awkward, but it'll do. Thanks!spud. ------------------------------------------------------------------------- a.h.s. boy ---------------------- manifesto overlord, dada typographics spud@nothingness.org ------- http://www.nothingness.org/Now featuring Social Anarchism and the Situationist International archives J'suis l'enfant de l'etat, et je me bats contre ca
a.h.s. boy
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:
if/then/else in founditems (2001)
Problems with SELECT MULTIPLE (1999)
problems with 2 tags (1997)
Possible Bug in 2.0b15.acgi (1997)
my price won't move (1997)
The BUG is BACK -- leading < character (1998)
Add - optional parameters textA=.... (1997)
problems with 2 tags (1997)
carriage returns in data (1997)
Execute Applescript (1997)
Tried installing Windows beta with no success... (2000)
Looking up two prices in database? (1997)
Tab Charactor (1997)
emailer w/F2 (1997)
Exposure Opportunity....! (1999)
Appending space (1998)
WebCatalog 4.0.2b5 available (2000)
Location of Browser Info.txt file (1997)
Problems passing [SKU] with $Replace in 2.0 (1997)
Converting Esiting Html Table Forms to WebCat (1997)