As order of arrival is important to "identify" which of the two values is $1 and which is $2, you need to pack the values into a list first. Otherwise the message interprets both number box values as $1.
— Pasted Max Patch, click to expand. —
Copy all of the following text. Then, in Max, select New From Clipboard.