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:
[WebDNA] WebDNA licenses discount from 12/23 to 12/31 (2011)
4D Database (1997)
NT Version on IIS 4.0 (1997)
webcat2b12 CGI -- Date comparisons (1997)
searching multiple databases (1997)
Multiple Pulldowns (1997)
SetHeader not Working (2006)
Discounts (2002)
Re[2]: Images (2000)
cart number tracking (1998)
Help! WebCat2 bug (1997)
ShoppingCart removal (2002)
Nitro plugin? (1998)
.. more on sliding discounts... (1997)
DNA Bandwidth Monitor (2005)
[AppendFile] problem (WebCat2b13 Mac .acgi) (1997)
StoreBuilder Q's (2003)
WC2b15 - [HTMLx]...[/HTMLx] problems (1997)
WebDNA color code chart - oops (2002)
Progress !! WAS: Trouble with formula.db (1997)