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:
WebCat editing, SiteGuard & SiteEdit (1997)
Adding Shipping Costs based on percent of subtotal (1997)
WC Database Format (1997)
Appendfile memory usage (redux) (2003)
File Upload (1997)
Summing fields (1997)
RE: includes and cart numbers (1997)
NT lockup cont'd (1998)
Closing Databases (1998)
ExclusiveLock (2003)
WebCat2 beta FTP site (1997)
Database Options (1997)
RE: WebCatalog2 for NT Beta Request (1997)
Maybe minor bug report (1997)
[WebDNA] Delete founditems (2010)
[OT] KeepItUp for Windows (2003)
WebDNA release (2005)
WebCatalog can't find database (1997)
WebCat2b13MacPlugIn - [shownext method=post] ??? (1997)
Claris HomePage messes up the code (1997)