How do i get my if to repeat untill another if value is entered.

This, and the others like it, doesn't make sense because it does nothing:

else(val == 0);

Pete