Announcement

Collapse
No announcement yet.

Is "break to label" supported by efs?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Is "break to label" supported by efs?

    1. Can anybody confirm if that Java feature is supported by efs [break to a label from inside for loops]?
    2. If it is, does anybody have an example?

    Could not find anything with Search and anything I tried did not work.
    Thank you.
    Mihai Buta

  • #2
    Hello Mihai,

    Yes you can break to a label from a loop. See the label statement in this article in the EFS KB. Here's a basic code example. Hope this helps.

    PHP Code:
    var 0;

    function 
    main() {
        
        
    myLabel:
        for (
    02i++) {            
            
    debugPrintln("Loop 1");
            
    3;
            
            break 
    myLabel;
            
    //break nextLabel;  // not legal
        
    }
        
        
    nextLabel:
        for (
    35i++) {
            
    debugPrintln("next loop");
        }
        
        return;

    Jason K.
    Project Manager
    eSignal - an Interactive Data company

    EFS KnowledgeBase
    JavaScript for EFS Video Series
    EFS Beginner Tutorial Series
    EFS Glossary
    Custom EFS Development Policy

    New User Orientation

    Comment


    • #3
      Hello Jason,

      Thank you. I will try again to see what I was doing wrong.
      Mihai Buta

      Comment

      Working...
      X