Maybe have a look at some of my blog posts. Even though they were written long ago, lot is still valid for CP7:
http://blog.lilybiri.com/curious-about-variables-in-captivate-4-5
http://blog.lilybiri.com/unleash-the-power-of-variables-in-captivate-5
Customized feedback with video tutorial
Lilybiri