Math confusion

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 59345
interpreted = N
texte = Someone help me out. We are working on a subscription based system that has an extend time tool. The tool works like this Expires: 732129 (07/02/2004) variable = orig You can select from 4 times: 3 months (passes 3) 6 months (passes 6) 9 months (passes 9) 12 months (passes 12) These are passed via a select menu. I then use them in a math expression. [Math][orig]+{[showif[more_time]!12]0[/showif][more_time]/00/0000}[/Math] This does not work: [Math date]732129+{03/00/0000}[/Math] becomes this: 08/30/2004 this did not add three months as expected. But if I remove the orig variable and use todays date it works. [Math date]{[date]}+{03/00/0000}[/Math] becomes this: 12/10/2004 Any ideas why this is not working? ------------------------------------------------------------- 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: Math confusion ( Kenneth Grome 2004)
  2. Re: Math confusion ( Donovan Brooke 2004)
  3. Re: Math confusion ( Brian Fries 2004)
  4. Math confusion ( "WebDna @ Inkblot Media" 2004)
Someone help me out. We are working on a subscription based system that has an extend time tool. The tool works like this Expires: 732129 (07/02/2004) variable = orig You can select from 4 times: 3 months (passes 3) 6 months (passes 6) 9 months (passes 9) 12 months (passes 12) These are passed via a select menu. I then use them in a math expression. [math][orig]+{[showif[more_time]!12]0[/showif][more_time]/00/0000}[/Math] This does not work: [Math date]732129+{03/00/0000}[/Math] becomes this: 08/30/2004 this did not add three months as expected. But if I remove the orig variable and use todays date it works. [Math date]{[date]}+{03/00/0000}[/Math] becomes this: 12/10/2004 Any ideas why this is not working? ------------------------------------------------------------- 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/ "WebDna @ Inkblot Media"

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:

[removelineitem] not quite working inside [formvariables] loop (2001) Clickable maps and WebCatalog? (1996) Keyword search (2004) 2 field showif/hideif's (2002) Re:2nd WebCatalog2 Feature Request (1996) WebCatalog 3 NT License FS (2000) Email encryption (1998) OT: Time Tracking (2003) Adding headers to email (1997) [Announce] Newest Commerce Site based on WebCatalog (1997) IE, Layers, and Select (2002) Problems appending to database (1997) [WebDNA] Some news (2010) Fwd: Handling Charges (1999) How to display images? (2002) Fedex integration (2004) Show only certain items (2002) RE: [REPLACE] inside [FOUNDITEMS] (1998) WebCat2b15MacPlugin - [protect] (1997) error: unknown exception (1998)