while (StateStnum_1!= stnum_1) {
StateStnum_1++;
flip('hoursUp' + 1, 'hoursDown' + 1, StateStnum_1, 'Single/Up/' + 2 + '/', 'Single/Down/' + 1 + '/');
if(StateStnum_1 > 9){StateStnum_1 = 0;}
console.log(StateStnum_1);
};
while (StateStnum_1 != stnum_1) {
var oldState = StateStnum_1;
StateStnum_1++;
if (StateStnum_1 > oldState) {
flip('hoursUp' + 1, 'hoursDown' + 1, StateStnum_1, 'Single/Up/' + 2 + '/', 'Single/Down/' + 1 + '/');
}
if(StateStnum_1 > 9) {
StateStnum_1 = 0;
}
console.log(StateStnum_1);
};