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:

    
  1. Re: [defined]ish (a.h.s. boy 1997)
  2. Re: [defined]ish (Grant Hulbert 1997)
  3. Re: [defined]ish (Christer Olsson 1997)
  4. Re: [defined]ish (a.h.s. boy 1997)
  5. Re: [defined]ish (Kenneth Grome 1997)
  6. Re: [defined]ish (Christer Olsson 1997)
  7. [defined]ish (a.h.s. boy 1997)
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)