Re: Remove Multiple Line Items
This WebDNA talk-list message is from 2005
It keeps the original formatting.
numero = 62836
interpreted = N
texte = Since this is for the record, if you're talking about inside the math context, then the square brackets around a math variable are optional. Try this:[math show=f]adjustby=0[/math][math show=f]adjustby=[adjustby]-1[/math][adjustby]It will return "-1" as desired. The same is NOT true of text variables.-- Brian Fries, BrainScan Software -- http://www.brainscansoftware.com --On Aug 23, 2005, at 3:34 PM, Stuart Tremain wrote:> Terry>> For the archives: There are a few missing [ ] brackets around adjustby>> [showif [trig]=Recalculate]> [math show=f]adjustby=0[/math]>> [formvariables name=qty_&exact=F]> [math show=f]updateitemnumber=[getchars > start=5][name][/getchars]+[adjustby][/math]>> [showif [value]=0]> [removelineitem file=ShoppingCarts/[cart]&index=[updateitemnumber]]> [math show=f]adjustby=[adjustby]-1[/math]> [/showif]>> [hideif [value]=0]> [setlineitem > file=ShoppingCarts/ > [cart]&db=[db]&index=[updateitemnumber]]quantity=[value][/setlineitem]> [/hideif]> [/formvariables]>> [/showif]>>>> Stuart Tremain-------------------------------------------------------------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:
Since this is for the record, if you're talking about inside the math context, then the square brackets around a math variable are optional. Try this:[math show=f]adjustby=0[/math][math show=f]adjustby=[adjustby]-1[/math][adjustby]It will return "-1" as desired. The same is NOT true of text variables.-- Brian Fries, BrainScan Software -- http://www.brainscansoftware.com --On Aug 23, 2005, at 3:34 PM, Stuart Tremain wrote:> Terry>> For the archives: There are a few missing [ ] brackets around adjustby>> [showif [trig]=Recalculate]> [math show=f]adjustby=0[/math]>> [formvariables name=qty_&exact=F]> [math show=f]updateitemnumber=[getchars > start=5][name][/getchars]+[adjustby][/math]>> [showif [value]=0]> [removelineitem file=ShoppingCarts/[cart]&index=[updateitemnumber]]> [math show=f]adjustby=[adjustby]-1[/math]> [/showif]>> [hideif [value]=0]> [setlineitem > file=ShoppingCarts/ > [cart]&db=[db]&index=[updateitemnumber]]quantity=[value][/setlineitem]> [/hideif]> [/formvariables]>> [/showif]>>>> Stuart Tremain-------------------------------------------------------------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/
Brian Fries
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:
Single Link browsing (1997)
WebCat2b12--[searchstring] bug (1997)
Complex search (2002)
WebCat2 - Getting to the browser's username/password data (1997)
Quickie question on the email templates (1997)
Where's Cart Created ? (1997)
Mass download. (2003)
WebDNA 5.1 is now available! (2003)
Bug? (1997)
Web Merchant process after credit card clears (1998)
splitting numbers in webDNA? (1997)
value in forms (2000)
Unexpected error (1997)
random random links (1999)
Expert tech support -- a fast and simple solution (long) ... (2000)
Problems adding stuff to the shopping cart. (1997)
form data submission gets truncated (1997)
carriage returns in data (1997)
[format xs] freeze (1997)
[WebDNA] Looking to buy WebDNA sites/businesses (2019)