It would be easier to see how your code is structured if you posted all of it. For instance, it is not clear from your description whether the if statements are nested within each other or not
It would be easier to see how your code is structured if you posted all of it. For instance, it is not clear from your description whether the if statements are nested within each other or not