Use logical NOT to control the loop : Boolean Operators : Operators JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Operators » Boolean Operators »

 

Use logical NOT to control the loop













var bFound = false;
var i = 0;

while (!bFound) {
    if (aValues[i== vSearchValue) {
        bFound = true;
    else {
        i++;
    }
}







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Operators
» Boolean Operators