Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

break in if statement js

breakme: if (condition) {
    // Do stuff

    if (condition2){
        // do stuff
    } else {
       break breakme;
    }

    // Do more stuff
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #break #statement #js
ADD COMMENT
Topic
Name
2+8 =