if(strval(inputtext) == 500){ // Show next window as the value was correct}else{ // Show last window as the value was wrong.}