thank you for the help, and you did remember right, but heres the thing i need the if/else statement to control invalid inventory numbers also, the one inventory has ids 0000-4999 and the other inventory has ids of 5000-9000 so should i just use multiple if and else if statements or what. And thank you again for the help.