I am trying to compare two values. if the value equals then the loop must break and goto next for iteration.This is code I am using.

```
forLoop:
for (var i = 1, len = values.length; i < len; i++) {
    $('.charStyleAddedToDoc .char-style-added h4')
        .each(function(index, element) {
            //check if value matches
            if ($(element)
                .text() == values[i]) {
                // shoud go next for iteration in for loop
                break forLoop;
            }
        });
    html += '<div class="prog-row side-mini-stat clearfix"><div class="char-style-available"><h4>' + values[i] + '</h4></div></div>';
}

```

I am getting as label is not defined in (break forLoop;) line.