The modulo operation works well for this if all my items are labeled with a number:
alert('Put item "12345" into box number ' + 12345%87 );
How can I do this by text content? Is there a way to convert characters into a number for this?
alert('Put item "zq7fgTpQ@bRh" into box number ' + "zq7fgTpQ@bRh"%87 );