It's better to use itemcount
Code:
if ((itemcount{xxxx} == 2))
That makes it so that the item can be turned in with any slot , only really useful for multi-turn in items, if the quest is only with 1 item to and in, then if ($item 1) is fine.
Nice first quest, keep it up!