Re: Calculating a total
This WebDNA talk-list message is from 2000
It keeps the original formatting.
numero = 36186
interpreted = N
texte = This is where I am up to:This calculates the value of the price[Text]TextB[lineindex]=[format .2f][math]([quantity]*[price])*[ShowIf [Math]([weeks]/4)*[quantity][/math]<3]0.95[/ShowIf][ShowIf [Math]([weeks]/4)*[quantity][/math]=3]0.9[/Showif][ShowIf [Math]([weeks]/4)*[quantity][/math]=4]0.9[/Showif][ShowIf [Math]([weeks]/4)*[quantity][/math]=5]0.9[/Showif][ShowIf [Math]([weeks]/4)*[quantity][/math]=6]0.85[/Showif][ShowIf [Math]([weeks]/4)*[quantity][/math]=7]0.85[/Showif][ShowIf [Math]([weeks]/4)*[quantity][/math]=8]0.85[/Showif][ShowIf [Math]([weeks]/4)*[quantity][/math]=9]0.8[/Showif][ShowIf [Math]([weeks]/4)*[quantity][/math]=10]0.8[/Showif][ShowIf [Math]([weeks]/4)*[quantity][/math]=11]0.8[/Showif][SHOWIF [Math]([weeks]/4)*[quantity][/math]>11] 0.75[/Showif][/math][/format][/Text]Now what can I do to make this work properly: ie make the integer to TextB.. dynamic[Math][TextB1]+[TextB2]+[TextB3]+.........etc[/Math]-- Stuart TremainDigital Imaging DivisionThe Ad-Libitum Group48 Victoria StreetNorth Sydney 2060 AustraliaPhone: +612 9959 5633 Fax: +612 9929 4146email: stuartt@adlib.com.auhttp://www.adlib.com.auOn Wednesday, 16 August 2000, Stuart Tremain
wrote:>My shopping cart contains items whose prices have been>calculated according to how long the product's life is.>>My question is, how can I add these calculated prices to give a total?>I thought of giving them a value but I'm not sure how to gather>the values together to calculate a total.>>All ideas appreciated>-- >Stuart Tremain>>Digital Imaging Division>The Ad-Libitum Group>48 Victoria Street>North Sydney 2060 Australia>Phone: +612 9959 5633 Fax: +612 9929 4146>>email: stuartt@adlib.com.au>http://www.adlib.com.au>>>>------------------------------------------------------------->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/>-------------------------------------------------------------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:
This is where I am up to:This calculates the value of the price[text]TextB[lineindex]=[format .2f][math]([quantity]*[price])*[ShowIf [math]([weeks]/4)*[quantity][/math]<3]0.95[/ShowIf][ShowIf [math]([weeks]/4)*[quantity][/math]=3]0.9[/Showif][ShowIf [math]([weeks]/4)*[quantity][/math]=4]0.9[/Showif][ShowIf [math]([weeks]/4)*[quantity][/math]=5]0.9[/Showif][ShowIf [math]([weeks]/4)*[quantity][/math]=6]0.85[/Showif][ShowIf [math]([weeks]/4)*[quantity][/math]=7]0.85[/Showif][ShowIf [math]([weeks]/4)*[quantity][/math]=8]0.85[/Showif][ShowIf [math]([weeks]/4)*[quantity][/math]=9]0.8[/Showif][ShowIf [math]([weeks]/4)*[quantity][/math]=10]0.8[/Showif][ShowIf [math]([weeks]/4)*[quantity][/math]=11]0.8[/Showif][SHOWIF [math]([weeks]/4)*[quantity][/math]>11] 0.75[/Showif][/math][/format][/Text]Now what can I do to make this work properly: ie make the integer to TextB.. dynamic[math][TextB1]+[TextB2]+[TextB3]+.........etc[/Math]-- Stuart TremainDigital Imaging DivisionThe Ad-Libitum Group48 Victoria StreetNorth Sydney 2060 AustraliaPhone: +612 9959 5633 Fax: +612 9929 4146email: stuartt@adlib.com.auhttp://www.adlib.com.auOn Wednesday, 16 August 2000, Stuart Tremain wrote:>My shopping cart contains items whose prices have been>calculated according to how long the product's life is.>>My question is, how can I add these calculated prices to give a total?>I thought of giving them a value but I'm not sure how to gather>the values together to calculate a total.>>All ideas appreciated>-- >Stuart Tremain>>Digital Imaging Division>The Ad-Libitum Group>48 Victoria Street>North Sydney 2060 Australia>Phone: +612 9959 5633 Fax: +612 9929 4146>>email: stuartt@adlib.com.au>http://www.adlib.com.au>>>>------------------------------------------------------------->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/>-------------------------------------------------------------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/
Stuart Tremain
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:
Problems passing [SKU] with $Replace in 2.0 (1997)
Wonderin' whats the way (1998)
[WebDNA] Search on a database (2012)
taxTotal, grandTotal (1997)
How do I make this faster???? (2000)
Another bug to squash (WebCat2b13 Mac .acgi) (1997)
PCS Frames (1997)
XML version of WebDNA docs? (2000)
[TCPSend] and whois? (1999)
Mac List Servers (was: Duplicate Hell) (1999)
WEBCAT with SQL backend. Help please! (2000)
Textarea (1998)
Text data with spaces in them... (1997)
WC1.6 to WC2 date formatting (1997)
Practice runs ? (1997)
Secure server question (1997)
using showpage and showcart commands (1996)
Emailer 1.0.2 Conflicts? (1998)
Polls (2003)
WCS Newbie question (1997)