Why isn't this snipet of code working correctly

Printable View