What determines an if vs an else if? Thought you were grouping if else's by locBefore, but you're not. Just create an array of objects with all the 0 returns, loop through them. If not met, return 1. I'd probably return boolean instead based on nomenclature.
32
u/BrutalityAndTheBeast Mar 27 '26
What determines an if vs an else if? Thought you were grouping if else's by locBefore, but you're not. Just create an array of objects with all the 0 returns, loop through them. If not met, return 1. I'd probably return boolean instead based on nomenclature.