help with menu items

ok so here is my code…why isn’t it working?

on choose menu item theObject
if the name of theObject is equal to menu item "cntrl_pp" of menu "cntrl_main" then
		using terms from application "iTunes"
			tell application "iTunes"
			end tell
		end using terms from
		end if
end choose menu item

You’re comparing text to an object. You need to compare text to text:

if name of theObject is "cntrl_pp" then

lol by the time i read this post i had already figured it out:P