Can you do this

 From:  Booleano
10266.9 In reply to 10266.2 
Thanks Pilou.

I'm not sure I have understood your solution, the problem may be the GG translation, but Michael's solution is perfect for me.
I don't know if it would be helpful if someone made a script for this?