Re: apparent variable variable display?

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 31310
interpreted = N
texte = dont mean 2 b rude, but I have had this, and the value of [header40] in the statement: header40=[header40] ...had a null value itself!> From: John Butler > Reply-To: (WebCatalog Talk) > Date: Wed, 03 May 2000 11:46:16 > To: (WebCatalog Talk) > Subject: apparent variable variable display? > > I finding something inconsistent, tho it might be my brain...? > I want to do something if one of the orderfile headers has not yet been given > a value. > I have successfully been using this- > > [showif [Header1]=[raw][Header1][/raw]] > do stuff > [/showif] > > But when I stick this on my template- > > Header40=[Header40] > > Then it returns- > Header40= > > so which is it? Do undefined orderfile headers display as the null string > (like empty > db fields), or do they display as uninitialized vars, like [somevar]? > If the former then why does my showif above evaluate to true? > > -John > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Associated Messages, from the most recent to the oldest:

    
  1. Re: apparent variable variable display? (John Butler 2000)
  2. Re: apparent variable variable display? (John Butler 2000)
  3. Re: apparent variable variable display? (John Peacock 2000)
  4. Re: apparent variable variable display? (John Butler 2000)
  5. Re: apparent variable variable display? (John Peacock 2000)
  6. Re: apparent variable variable display? (Rob Marquardt 2000)
  7. apparent variable variable display? (John Butler 2000)
  8. Re: apparent variable variable display? (John Peacock 2000)
  9. Re: apparent variable variable display? (Scott Tolley 2000)
dont mean 2 b rude, but I have had this, and the value of [header40] in the statement: header40=[header40] ...had a null value itself!> From: John Butler > Reply-To: (WebCatalog Talk) > Date: Wed, 03 May 2000 11:46:16 > To: (WebCatalog Talk) > Subject: apparent variable variable display? > > I finding something inconsistent, tho it might be my brain...? > I want to do something if one of the orderfile headers has not yet been given > a value. > I have successfully been using this- > > [showif [Header1]=[raw][Header1][/raw]] > do stuff > [/showif] > > But when I stick this on my template- > > Header40=[Header40] > > Then it returns- > Header40= > > so which is it? Do undefined orderfile headers display as the null string > (like empty > db fields), or do they display as uninitialized vars, like [somevar]? > If the former then why does my showif above evaluate to true? > > -John > > > ------------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Scott Tolley

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:

math on date? (1997) Authorize.net for dummies (2003) &FieldNametype=time unnecessary? (2000) Multiple prices (1997) PSC recommends what date format yr 2000??? (1997) Moment of Thanks (1997) Formating Tables w/[founditems] (1998) WebCatalog for Dummies part 2 (2000) Switching from merge to tab delimited..(v 2.x) (2000) Problems with 2.1b4 (1997) Sorting by date (1997) $Replace with [founditems] (1997) WebCatalog Q & A pages (1997) carriage returns in data (1997) What is the maximum record length? (1998) WebCat2b12 CGI Mac -- Problems propagating the cart through (1997) RAM variables (1997) Virtual hosting and webcatNT (1997) html pages not working (2003) WebDNA Promo Sound Bite (2003)