The worst piece of AL ever written, Pt. 1

What if you looked at a piece of AL code, and the more you looked, the more bugs you found? Help me create such a masterpiece. Check out the video for details:

https://youtu.be/ybKVsNrEaME