Within custom code, you should use _satellite.getVar('data element name') to access the data element value. I would recommend you first validate the data element value in browser console and proceed from there. Improper set up or timing issues could be resulting in empty data element at access time.