Thanks, Holger.

Now, I must use your code to find the max. value according to the result of "if" object.