What you can do if you want to get real deep is hold the UID to know where to assign them. Then you can check the UID to know which one to store with what variable.
[attachment=0:186g8xql][/attachment:186g8xql]
**THIS ONE BETTER EXAMPLE FYI in case you didn't know you can see the assigned UID for every object in the properties window of the layout