Setting Up Number

After it goes below to 0 how can I set it back up 300 again?

if (myNumber < 0) myNumber = 300;

just do that after every piece of code that changes myNumber (or whatever variable name you used)


if (myNumber < 0) myNumber = 300;

when u said that does the < 0… does it tell that the number has to be on 0? how can i make it if its below zero any of the negatives?

is less than zero, so, all negative numbers are included, once all of them are below zero. :wink: