Trouble with #compare handlebar

I'm trying to build a handlebar statement that compares 2 fields, and if they are equal, then return a field.

{{#compare [L5[*].ORDERED PART] "===" [L5[*].SHIPPED PART]}}{{L5[*].SHIPPED PART}}{{/compare}}

This is the error:

"Could not compile handle bar \"{{#compare [L5.[0].ORDERED PART] \"===\" [L5.[0].SHIPPED PART]}}{{L5[*].SHIPPED PART}}{{/compare}}\" because \"Parse error on line 1:\n...are [L5.[0].ORDERED PART] \"===\" [L5.[0].\n-----------------------^\nExpecting 'CLOSE_RAW_BLOCK', 'CLOSE', 'CLOSE_UNESCAPED', 'OPEN_SEXPR', 'CLOSE_SEXPR', 'ID', 'OPEN_BLOCK_PARAMS', 'STRING', 'NUMBER', 'BOOLEAN', 'UNDEFINED', 'NULL', 'DATA', 'SEP', got 'INVALID'\" .Please correct and retry"

Any ideas on how to get this to work?

Update on this - changed the expression to:

{{#compare L5[*].ORDERED PART "==" L5[*].SHIPPED PART}}{{L5.[*].SHIPPED PART}}{{/compare}}

Now the error is:

"Could not compile handle bar \"{{#compare L5.[0].ORDERED PART \"==\" L5.[0].SHIPPED PART}}{{L5.[*].SHIPPED PART}}{{/compare}}\" because \"helper {{compare}}: invalid operator: `undefined`\" .Please correct and retry"

Hi @coryanderson215,

Thanks for posting to the community! I checked with one of our handlebars experts. He says the issue is that you're using wildcards in your expression. You'll need to specify the exact indices for the values you want to match. I hope that helps!