I am trying to output a result base on the condition met, but am only outputting one result, I don\'t know why I am having the same result all the time. Here my code