Code example not work

The code you have posted will only do something if you have stored something in the global segment.