Re: looping table rows

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 23760
interpreted = N
texte = >Since you're in the loop context use the [index] tag and the mod function % >to solve you're problem.>[showif [math][index]%4[/math]=0][/showif]There is also a special funtion built into ShowIf itself that does the same thing. We call it the Is Divisible By comparison:[ShowIf [index]\4] (note the backwards slash)You can see this documented in the ShowIf section of the docs.Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: looping table rows (John Winningham 1999)
  2. Re: looping table rows (Dennis J. Bonsall, Jr. 1999)
  3. Re: % (mod) was Re: looping table rows (RH Prouty 1999)
  4. Re: % (mod) was Re: looping table rows (PCS Technical Support 1999)
  5. Re: looping table rows (charles kline 1999)
  6. Re: looping table rows (charles kline 1999)
  7. Re: % (mod) was Re: looping table rows (RH Prouty 1999)
  8. Re: % (mod) was Re: looping table rows (RH Prouty 1999)
  9. Re: % (mod) was Re: looping table rows (Kenneth Grome 1999)
  10. Re: looping table rows (Brian Willson 1999)
  11. Re: looping table rows (charles kline 1999)
  12. % (mod) was Re: looping table rows (Michael Winston 1999)
  13. Re: looping table rows (charles kline 1999)
  14. Re: looping table rows (PCS Technical Support 1999)
  15. Re: looping table rows (Kenneth Grome 1999)
  16. Re: looping table rows (Michael Winston 1999)
  17. Re: looping table rows (Kenneth Grome 1999)
  18. Re: looping table rows (charles kline 1999)
  19. Re: looping table rows (Kenneth Grome 1999)
  20. Re: looping table rows (Josh Tiger 1999)
  21. looping table rows (Phil Herring 1999)
>Since you're in the loop context use the [index] tag and the mod function % >to solve you're problem.>[showif [math][index]%4[/math]=0][/showif]There is also a special funtion built into ShowIf itself that does the same thing. We call it the Is Divisible By comparison:[ShowIf [index]\4] (note the backwards slash)You can see this documented in the ShowIf section of the docs.Technical Support | ==== eCommerce and Beyond ==== Pacific Coast Software | WebCatalog, WebMerchant, 11770 Bernardo Plaza Court | SiteEdit Pro, PhotoMaster, San Diego, CA 92128 | Typhoon 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com/ PCS Technical Support

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:

[WebDNA] Migration from 6.2 to 7. Problems with writing to DB's (2012) Seeking WebCat Bulletin Board (1999) WebDNA vars parsed in FLASH (ActionScript) (2004) WebDNA problem (2006) WebCat2 several catalogs? (1997) Dubble Sku's in a Database (1999) OT - quiet on the list today - here's something (2004) random random links (1999) OT Pager notification of completed orders (1998) error: Too many nested [xxx] contexts (1997) Out of the woodwork (2007) Calendar using WebCatalog? (1997) Creating a folder with WebCat? (2000) WebMerchant and PC Auth Hub (1999) Credit card processing - UK (1997) Nesting format tags (1997) WebCat2 beta 11 - new prefs ... (1997) Error handling for accountNum (1997) More than one db with the same namn (was: WC2f3) (1997) New WebCatalog site! (1997)