When to ‘break’ and When to ‘continue’ There are a couple of ways to interrupt a loop: we’ll explore break and continue. break In the following example, a loop-continuation-condition is set to test if the number is less than 20. If true, the number variable will increment by one and the current value of the variable number will be added to the total as is defined by the variable sum. So if we let the following loop continue without any sort of interruption, the number will be 20 and the sum will be 210. However, adding the keyword break after the test is performed within the while loop will cause the loop to