how to make if statements happen once in for loop code example
Example: how to make a if loop happen one
let switch = true
if ( switch = true && other criteria) {
// the code
switch = false
}
let switch = true
if ( switch = true && other criteria) {
// the code
switch = false
}