Re: Confirming a bug/oddity

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 54016
interpreted = N
texte = Ahh, what is the order of preference between form, math and text? I would guess: text math form ??? Hmm, this leads to... If listvariables loops through both math and text vars, how is one to determine what type they are? thanks, Donovan Scott Anderson wrote: > I am sure the math statement is executing as you excepted, resulting in a > value of '1'. The trouble comes when you try to display the result. Text > and Math variables are separate entities, with Text variables taking > precedence over Math variables. And since you have create a Math and Text > variable using the same name, you need to explicitly specify which variable > you want displayed. For example: > > [text show=f]thisone=0[/text] > [math show=f]thisone=[thisone]+1[/math] > > [thisone] <-- will display the Text 'thisone' variable value (which is '0') > > To display the 'thisone' Math variable, you will need to do this... > > [math]thisone[/math] <-- will display the math 'thisone' variable value > (which is '1') -- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE Eucalyptus Design WWW Developer / Consultant <-Web Development (specializing in eCommerce), -> <-Graphic Design, and Pre-Press Consultation -> ADDRESS:> Donovan Brooke DBA Eucalyptus Design N2862 Summerville Park Rd. Lodi, WI 53555 PH:> 1.608.592.3567 email:> dbrooke(AT)euca.us Web:> http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o ------------------------------------------------------------- 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 Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Confirming a bug/oddity ( Donovan Brooke 2003)
  2. Re: Confirming a bug/oddity ( "Scott Anderson" 2003)
  3. Re: Confirming a bug/oddity ( Donovan Brooke 2003)
  4. Re: Confirming a bug/oddity ( "Scott Anderson" 2003)
  5. Re: Confirming a bug/oddity ( Matthew Bohne 2003)
  6. Re: Confirming a bug/oddity ( Glenn Busbin 2003)
  7. Re: Confirming a bug/oddity ( Donovan Brooke 2003)
  8. Re: Confirming a bug/oddity ( "Scott Anderson" 2003)
  9. Re: Confirming a bug/oddity ( Jesse Proudman 2003)
  10. Re: Confirming a bug/oddity ( Gary Krockover 2003)
  11. Re: Confirming a bug/oddity ( Donovan Brooke 2003)
  12. Re: Confirming a bug/oddity ( Gary Krockover 2003)
  13. Re: Confirming a bug/oddity ( Donovan Brooke 2003)
  14. Confirming a bug/oddity ( Alex McCombie 2003)
Ahh, what is the order of preference between form, math and text? I would guess: text math form ??? Hmm, this leads to... If listvariables loops through both math and text vars, how is one to determine what type they are? thanks, Donovan Scott Anderson wrote: > I am sure the math statement is executing as you excepted, resulting in a > value of '1'. The trouble comes when you try to display the result. Text > and Math variables are separate entities, with Text variables taking > precedence over Math variables. And since you have create a Math and Text > variable using the same name, you need to explicitly specify which variable > you want displayed. For example: > > [text show=f]thisone=0[/text] > [math show=f]thisone=[thisone]+1[/math] > > [thisone] <-- will display the Text 'thisone' variable value (which is '0') > > To display the 'thisone' Math variable, you will need to do this... > > [math]thisone[/math] <-- will display the math 'thisone' variable value > (which is '1') -- =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o DONOVAN D. BROOKE Eucalyptus Design WWW Developer / Consultant <-Web Development (specializing in eCommerce), -> <-Graphic Design, and Pre-Press Consultation -> ADDRESS:> Donovan Brooke DBA Eucalyptus Design N2862 Summerville Park Rd. Lodi, WI 53555 PH:> 1.608.592.3567 email:> dbrooke(AT)euca.us Web:> http://www.euca.us =o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o=o ------------------------------------------------------------- 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 Web Archive of this list is at: http://webdna.smithmicro.com/ Donovan Brooke

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:

Bug Report, maybe (1997) Hiding usernames and passwords in URL (1998) Card clearance, problems - solutions? (1997) WebCat2 beta 11 - new prefs ... (1997) Wierd webdna problem and terminal message (2005) Displaying photo attached to first record (1997) Pithy questions on webcommerce & siteedit (1997) [Sum] function? (1997) Showif Context combined with Search (1997) Hiding Email Addresses (2003) Slightly off-topic hits to purchase ratio? (1999) setlineitem quantity to zero? (2000) Duplicate Carts (2000) Multiple servers and Webcat (1998) triggering an update of two frames (1998) item sorting (1997) shoppingcart reload qty (1997) Lastautonumber (2005) Add a field to the error log? (1997) [carts] and databases (1997)