Re: Bug with periods in [math] variable names

This WebDNA talk-list message is from

2001


It keeps the original formatting.
numero = 37602
interpreted = N
texte = on 8/1/01 12:19 PM, John Peacock at jpeacock@rowman.com so noted...>> [math]var.1=20[/math] doesn't work >> [text]var.1=20[/text] does. > > See http://betadoc.smithmicro.com/MathContext.html, third paragraph. > > Suprisingly, the DOCUMENTED behavior is that you can only use text and > numbers (specifically text followed by number) for math variables.After using valid math variables like [var_1] for so long, I didn't even think to look (of course, had I gone by the docs, I wouldn't have been using underscores either ; ) on 8/1/01 7:15 PM, Grant Hulbert at grant@hulbertfamily.com so noted...>> 3- Math variable names cannot begin with a numeric digit, yet no other >> variables have this limitation. > > x*7 := multiply variable x times the number 7 > x*7y :: is it x*7 followed by y, or is it x times variable 7yI can see the logic in this and how it creates the limitation -- I always bracket math variables inside the [math] context which (if required) would eliminate the ambiguity.[math][x]*7[/math] [math][x]*[7y][/math] What I ended up doing for this current project was using [text] variables inside the [math] context, which works just fine.[text]var.1=20[/text] [math][var.1]*5[/math] Rob Marquardt Designer/Resident Wirehead Toast Design800 Washington Avenue North Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.com ------------------------------------------------------------- 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://search.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Bug with periods in [math] variable names (Rob Marquardt 2001)
  2. Re: Bug with periods in [math] variable names (Grant Hulbert 2001)
  3. Re: Bug with periods in [math] variable names (Kenneth Grome 2001)
  4. Re: Bug with periods in [math] variable names (John Peacock 2001)
  5. Bug with periods in [math] variable names (Rob Marquardt 2001)
on 8/1/01 12:19 PM, John Peacock at jpeacock@rowman.com so noted...>> [math]var.1=20[/math] doesn't work >> [text]var.1=20[/text] does. > > See http://betadoc.smithmicro.com/MathContext.html, third paragraph. > > Suprisingly, the DOCUMENTED behavior is that you can only use text and > numbers (specifically text followed by number) for math variables.After using valid math variables like [var_1] for so long, I didn't even think to look (of course, had I gone by the docs, I wouldn't have been using underscores either ; ) on 8/1/01 7:15 PM, Grant Hulbert at grant@hulbertfamily.com so noted...>> 3- Math variable names cannot begin with a numeric digit, yet no other >> variables have this limitation. > > x*7 := multiply variable x times the number 7 > x*7y :: is it x*7 followed by y, or is it x times variable 7yI can see the logic in this and how it creates the limitation -- I always bracket math variables inside the [math] context which (if required) would eliminate the ambiguity.[math][x]*7[/math] [math][x]*[7y][/math] What I ended up doing for this current project was using [text] variables inside the [math] context, which works just fine.[text]var.1=20[/text] [math][var.1]*5[/math] Rob Marquardt Designer/Resident Wirehead Toast Design800 Washington Avenue North Minneapolis MN 55401 612.330.9863 v 612.321.9424 f www.toastdesign.com ------------------------------------------------------------- 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://search.smithmicro.com/ Rob Marquardt

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:

Couple of questions (1999) Busy WebCatalog (2000) 2nd WebCatalog2 Feature Request (1996) Running 2 two WebCatalog.acgi's (1996) Include (2000) Running _every_ page through WebCat ? (1997) Math with Time (1997) Limit to variables passed on to next tpl? (1998) WC Database Format (1997) Security Question (1997) [WebDNA] Emailer breaking format (2015) Chomp? (2004) [Q] Novice's question (1997) taxRate is fine but taxTotal isn't (1997) WebTV (1998) Search syntax question (1998) Nested tags count question (1997) WebCat2b13MacPlugIn - [shownext method=post] ??? (1997) PCS Frames-Default page is solution! (1997) problems with 2 tags (1997)