Re: strange math
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 56975
interpreted = N
texte = I think the first two lines show that var1 and var2 alternate between a value of 1 and a value of "space" or another invisible character or null. I would set a blank var to zero if that's what you're intending. Bill-----Original Message-----From: Kenneth Grome
Sent: Thu, 18 Mar 2004 20:43:27 +0800To: (WebDNA Talk)Subject: Re: strange mathWithout the var1 and var2 values there's no way to debug it. What are these values? Are you *sure* they are always valid numbers?>code:>>var1=[var1]
>var2=[var2]
>total= [math][var1]+[var2][/math]
>total2= [math][var2]+[var1][/math]>>results are:>>var1=1>var2 >total >total2= 1>>or:>>var1 >var2=1>total=1>total2 >>or:>>var1=1>var2=1>total=2>total2=2>>shouldn't the last 2 lines of code always provide the same result no >matter what order they are listed inside the [math][/math] tags?>>>>>On Thursday, March 18, 2004, at 07:12 AM, Kenneth Grome wrote:>>>>Thanks Kenneth, but the space before var2 was just a typo in the e-mail.>>>There is no space in the actual code of the file.>>>The code is still not adding, should I be initializing the >>>variables somehow?>>>thanks,>>>sfb>>>>Why don't you post your actual webdna code (no html) and then we >>can see better what's possibly wrong ...>>>>-->>>>Kenneth Grome>>WebDNA Programmer>>Outsource Service Provider>>Phone: +6332 255-6591>>>>------------------------------------------------------------->>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/>>>>>------------------------------------------------------------->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/-- Kenneth GromeWebDNA ProgrammerOutsource Service ProviderPhone: +6332 255-6591-------------------------------------------------------------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/-------------------------------------------------------------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:
I think the first two lines show that var1 and var2 alternate between a value of 1 and a value of "space" or another invisible character or null. I would set a blank var to zero if that's what you're intending. Bill-----Original Message-----From: Kenneth Grome Sent: Thu, 18 Mar 2004 20:43:27 +0800To: (WebDNA Talk)Subject: Re: strange mathWithout the var1 and var2 values there's no way to debug it. What are these values? Are you *sure* they are always valid numbers?>code:>>var1=[var1]
>var2=[var2]
>total= [math][var1]+[var2][/math]
>total2= [math][var2]+[var1][/math]>>results are:>>var1=1>var2 >total >total2= 1>>or:>>var1 >var2=1>total=1>total2 >>or:>>var1=1>var2=1>total=2>total2=2>>shouldn't the last 2 lines of code always provide the same result no >matter what order they are listed inside the [math][/math] tags?>>>>>On Thursday, March 18, 2004, at 07:12 AM, Kenneth Grome wrote:>>>>Thanks Kenneth, but the space before var2 was just a typo in the e-mail.>>>There is no space in the actual code of the file.>>>The code is still not adding, should I be initializing the >>>variables somehow?>>>thanks,>>>sfb>>>>Why don't you post your actual webdna code (no html) and then we >>can see better what's possibly wrong ...>>>>-->>>>Kenneth Grome>>WebDNA Programmer>>Outsource Service Provider>>Phone: +6332 255-6591>>>>------------------------------------------------------------->>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/>>>>>------------------------------------------------------------->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/-- Kenneth GromeWebDNA ProgrammerOutsource Service ProviderPhone: +6332 255-6591-------------------------------------------------------------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/-------------------------------------------------------------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/
devaulw@onebox.com
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:
Search or delete (or date or time) has bugs ... (1998)
updating a series of records via a text file? (1999)
Problems setting MIME Headers (1998)
Search in 2 or more catalogs (1997)
expired beta (1997)
OT: need bad code (2005)
WebCat2b15MacPlugin - [protect] (1997)
All choices on IE different than Netscape (1997)
2.0 Beta (1997)
Combining search criteria (2000)
WebMerchant email template format? (1997)
[WebDNA] WebDNA is not parsing CSS file (2010)
Re[2]: New syntax feedback for 4.0 (2000)
[HTML*] (a proposition) (1997)
PCS Frames (1997)
WebTen? (1997)
Cannot calculate prices (1997)
[WebDNA] SkipJack Authorize interface help (2009)
convert characters (2003)
Ensuring data gets passed to shopping cart (2000)