I'm working with X12 EDI files. I need the Interchange Sender and Receiver ID's to be 15 characters long. Rather than hardcode that value, I'd like to use a handlebars expression but I'm having trouble with that. I used the AI and got the following, but I'm getting an error that length isn't a valid operator in the #compare helper.
Here's the code I received:
{{#compare (getValue "record.[Interchange Receiver ID]" "") "length" "<" 15}}
{{getValue "record.Interchange Receiver ID" ""}}
{{else}}
{{substring (getValue "record.Interchange Receiver ID" "") 0 15}}
{{/compare}}
How can I alter it to get the desired result?