Re: Resetting a Formvariable
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 35237
interpreted = N
texte = On 7/26/00 4:01 pm, Glenn Busbin so noted...>>(FYI, for WC4, the way you're currently doing it would work : )>>>>Yeah, but it don't.>>I'm using 4.x on a Mac, but I'll try what you suggest for 3.x.Sorry, when I had tried it, I ran comparisons on the server by hand and didn't copy/paste code, so I overlooked the typo in the original post...>[showif [quantityordered]>[numavailable]]>[Math][quantityordered]=[numavailable][/math][/showif]should be:[showif [quantityordered]>[numavailable]][Math]quantityordered=[numavailable][/math][/showif](removing the brackets around the variable name for the assignment).That does work in WC4 -- when quantityordered is greater than numavailable a *new* math variable called quantityordered is created which supercedes the formvariable (if you do a [formvariables] loop, you'll find it still there, with its original value).Rob MarquardtDesigner/Resident WireheadToast Design800 Washington Avenue NorthMinneapolis MN 55401612.330.9863 v612.321.9424 fwww.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:
On 7/26/00 4:01 pm, Glenn Busbin so noted...>>(FYI, for WC4, the way you're currently doing it would work : )>>>>Yeah, but it don't.>>I'm using 4.x on a Mac, but I'll try what you suggest for 3.x.Sorry, when I had tried it, I ran comparisons on the server by hand and didn't copy/paste code, so I overlooked the typo in the original post...>[showif [quantityordered]>[numavailable]]>[math][quantityordered]=[numavailable][/math][/showif]should be:[showif [quantityordered]>[numavailable]][math]quantityordered=[numavailable][/math][/showif](removing the brackets around the variable name for the assignment).That does work in WC4 -- when quantityordered is greater than numavailable a *new* math variable called quantityordered is created which supercedes the formvariable (if you do a [formvariables] loop, you'll find it still there, with its original value).Rob MarquardtDesigner/Resident WireheadToast Design800 Washington Avenue NorthMinneapolis MN 55401612.330.9863 v612.321.9424 fwww.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:
Bug? (1997)
Running _every_ page through WebCat ? (1997)
HELP WITH DATES (1997)
Polls (2003)
Part Html part WebDNA (1997)
F3 crashing server (1997)
Installing WebDNA DEveloper edition on Mac OS X (2004)
[WebDNA] writefile (2009)
Word Break (1999)
webcat restarting script on Linux? (1999)
WC Database Format (1997)
Permission Denied Error (2001)
WC2b15 File Corruption (1997)
Re:WebCatalog f2 Installation (1997)
emailer (1997)
Today's suggestions - 2 More (1998)
Form Data, Back Button and 6.0.1 Patch (2005)
Interfacing WebMerchant to www.fedex.com (1997)
Version f1 status (1997)
New Site WebCat (1997)