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:

sort without the or a (1998) strange math (2004) MacAuthorize order data fields WAS:How To question... (1997) WebCat2b15MacPlugin - [protect] (1997) Help! WebCat2 bug (1997) price change help (1998) OT - Friday afternoon Fun with Toys (2002) how to use WebCat w. SSL & CyberCash (1998) Dynamic drop downs (2005) Linux ODBC and the ODBC Bridge (2000) problem serving foreign languages text (1997) Here we go again...WebDNA - SQL- Stored Procedures (2006) Incompatibility with WebCat 3 templates ... (2000) Still Stumped on ShowNext...HELP! (1997) What's wrong with this replace? (2002) WebCat2 - [format thousands] (1997) WCS Newbie question (1997) Re[2]: Problem with new formvariables (2000) [WebDNA] TCPconnect and Bitcoin rate (2017) Changing names of .hdr field names (2003)