I can't get the logic to conditionally align these 2 shapes

Printable View