How to beat logical path

Properly formatted, per this topic, please:
[Essentials] How To Post/Format Your Code Correctly