Displacing type of atoms if condition is met

Dear Stefan
It works :slight_smile:
Thanks a lot
Pascal