Consider your statement: Code:
 If $ePOAgent<'3.5' 


You are forcing the 3.5 to be a string, not a numeric value, by placing it in quotes. I'd certainly get rid of THESE quotes!

Consider, also, that version strings can look like "X.Y.Z", which would be treated as a string. So, "3.4.8" could be "greater" than "3.5" because the string is longer, not because the value is higher. Checking version info can be a black art. You might want to use Split to return only the Major.Minor values, and then compare each of the elements in the array that Split returns. Just one idea of many possible solutions. The key is to know how your data is being represented, so you can compare it accurately.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D