He did no error checking in the original script so I left it as simple as possible without changing the code too much. If we really want to get technical then it should also be checking that $3 is a numerical value :tongue: