var specialValues = [16, 64, 80]; for (i = 100; i >= 1; i--) { if (specialValues.indexOf(i) != -1) { действие } else { другое действие } }