Thanks all for the help and advice! For now I've switched from "||" to "or" but I'll definitely try to make a habit of using the new open statement as well, in this case it's not an option but it's good to know.
---------
brian
Comment on Re^2: Variable assignment after logical OR