you could use if statements var coins var points if(coins = ??){ if(points = ??){ I don't know what to put here, lol } else (points < ??) continue } else if(points = ??){ if(coins = ??){ I don't know what to put here, lol } else (coins < ??) continue } now, I'm no expert in coding and I dont think this script will do anything. it was simply to give you an idea of what you could try