Latching Footswitch to MIDI Converter

I did follow and read the link but couldn't get it (probably due to having spent most of the day struggling with my sketch and being at the end of my tether). I have now revisited it and even then couldn't get it until I realised that the </> was on the post (yes I know it says that) and not on the sketch box on my computer. I now know how it is done and I have edited my original post.