[LOOP]/[BREAK] bug

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 35546
interpreted = N
texte = MAC 3.08-4.0xxx PI[BREAK] does funny things depending on where it's placed (mostly, it executes the last iteration of the loop). This one dates back to at least 3.08. Although, it's completely possible that I just don't understand how [BREAK] is supposed to work.Compare:SOURCE: [LOOP start=1&end=10] [INDEX] [INDEX] [SHOWIF [INDEX]=6][BREAK][/SHOWIF] [/LOOP]RESULT: 1 1 2 2 3 3 4 4 5 5 6 6SOURCE: [LOOP start=1&end=10] [INDEX] [SHOWIF [INDEX]=6][BREAK][/SHOWIF] [INDEX] [/LOOP]RESULT: 1 1 2 2 3 3 4 4 5 5 6 10SOURCE: [LOOP start=1&end=10] [SHOWIF [INDEX]=6][BREAK][/SHOWIF] [INDEX] [INDEX] [/LOOP]RESULT: 1 1 2 2 3 3 4 4 5 5 6 6 10 10############################################################# 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 To switch to the INDEX mode, E-mail to Send administrative queries to Associated Messages, from the most recent to the oldest:

    
  1. Re: [LOOP]/[BREAK] bug (John Peacock 2000)
  2. Re: [LOOP]/[BREAK] bug (Michael Winston 2000)
  3. Re: [LOOP]/[BREAK] bug (John Peacock 2000)
  4. [LOOP]/[BREAK] bug (Michael Winston 2000)
MAC 3.08-4.0xxx PI[BREAK] does funny things depending on where it's placed (mostly, it executes the last iteration of the loop). This one dates back to at least 3.08. Although, it's completely possible that I just don't understand how [BREAK] is supposed to work.Compare:SOURCE: [LOOP start=1&end=10] [INDEX] [INDEX] [SHOWIF [INDEX]=6][BREAK][/SHOWIF] [/LOOP]RESULT: 1 1 2 2 3 3 4 4 5 5 6 6SOURCE: [LOOP start=1&end=10] [INDEX] [SHOWIF [INDEX]=6][BREAK][/SHOWIF] [INDEX] [/LOOP]RESULT: 1 1 2 2 3 3 4 4 5 5 6 10SOURCE: [LOOP start=1&end=10] [SHOWIF [INDEX]=6][BREAK][/SHOWIF] [INDEX] [INDEX] [/LOOP]RESULT: 1 1 2 2 3 3 4 4 5 5 6 6 10 10############################################################# 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 To switch to the INDEX mode, E-mail to Send administrative queries to Michael Winston

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:

append=T problem (1998) Erotic Sites (1997) Problems setting MIME Headers (1998) rename a file (1997) WebCatalog for guestbook ? (1997) Opinion: [input] should be called [output] ... (1997) Emailer setup (1997) no global [username] or [password] displayed ... (1997) Location of Webcat site in folder hierarchy (1997) WebCat2b12plugin - [search] is broken ... not! (1997) How do you TEAM Code? (2004) service stop and restart (1997) Summing fields (1997) Nested vs conditional (1997) Nested tags count question (1997) RAM variables (1997) PCS Frames (1997) Comments in db? (1997) Close Databases Crash? (1998) [WebDNA] sem_open bugfix for os x version 6.2 (2012)