Uploaded image for project: 'Railo'
  1. Railo
  2. RAILO-2179

add support for labels to break/continue

    Details

    • Type: Feature Request
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 4.1.0.000
    • Labels:
      None

      Description

      Examples:
      <!--- tag:loop/tag:break --->
      <cfset res="">
      <cfloop from="1" to="2" index="i" label="susi">
      <cfloop from="1" to="2" index="y">
      <cfset res=listAppend(res,"#i#:#y#")><cfbreak "susi">
      </cfloop>
      </cfloop>
      <cf_valueEquals left="#res#" right="1:1">

      <!--- script:while/script:continue --->
      <cfscript>
      res="";
      i=0;
      outer:while(++i < 3){
      res=listAppend(res,"is:#i#:#y#");
      y=0;
      while(++y<3)

      { res=listAppend(res,"ys:#i#:#y#"); continue outer; res=listAppend(res,"ye:#i#:#y#"); }

      res=listAppend(res,"ie:#i#:#y#");
      }
      valueEquals(res,"is:1:1,ys:1:1,is:2:1,ys:2:1");
      </cfscript>

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                micstriit Michael Offner
                Reporter:
                micstriit Michael Offner
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: