title: Is there a way to print upto an even result in a for loop?
body: <p>So I have a for loop that outputs something like "1,2,3, 4, 5,6...". Is there way to stop the loop lets say say at the last even number before the loop ends. So lets say if its "1,2, 3, 4, 5" , the loop stops when its at 4?</p>