Question
After multi-code reading, I want to receive the data in the format 'Left: XXX, Right: XXX', with the regions clearly separated.

function onResult (decodeResults, readerProperties, output)
{
if(decodeResults[0].decoded)
{
if(decodeResults.length == 2)
{
if(decodeResults[0].symbology.center.x < decodeResults[1].symbology.center.x)
output.content = "Left:" + decodeResults[0].content +" "+ "Right:" + decodeResults[1].content;
else
output.content = "Left:" + decodeResults[1].content +" "+ "Right:" + decodeResults[0].content;
}
else if(decodeResults.length == 1)
{
// DM280 resulution : 1440 x 1080
// After setting the area, select the X that will be the basis for dividing left and right, then change the number in the line below
if( decodeResults[0].symbology.center.x < 720)
output.content = "Left:" + decodeResults[0].content +" "+ "Right: No Code";
else
output.content = "Left: No Code" + " "+ "Right:"+decodeResults[0].content;
}
else
output.content = "Left: No Read";
}
}
When both have been read.

If only the left side is read

If only the right side is read

If neither has been read.
