I need help with this action:

PHP Code:
--Equip Shield/Stars
setsetting
('Targeting/Creatures/Hellhound/Setting1/OnlyIfTrapped''yes')
local Shield getuseroption('ShieldName')

while 
$lhand.id ~= 3414 do
equipitem(Shield'lhand'''100)
waitping()
end

while $rhand.id ~= 7368 do
equipitem(7368'rhand'''100)
waitping()
end 
it not to equip and unequip the shield someone help?