So in my kitchen printer template, I have the orders section like this:
[ORDERS]
<L11>{QUANTITY}x {NAME}
{ORDER TAGS}
Example of an order tags section
[ORDER TAGS:Set Lunch Drinks]
-- Format for order tags
[<L11> * [[='{ORDER TAG NAME}' == 'Masala Tea' ? '' : '{ORDER TAG NAME}']][=TN('{ORDER TAG QUANTITY}') > 1 ? ' x{ORDER TAG QUANTITY}' : '']]
Because of the way I have order tags setup and I am printing some order tags to one printer and some to another, there is a scenario where no order tags might print to a specific printer, and in which case I don’t want the order to print to that printer as well. I already have print jobs setup to handle the overall mapping of products, but as an example, based on the above example, if the order tag is “Masala Tea”, it won’t print that order tag, and the whole line is surrounded in [] to stop the line printing. So, if no order tags exist, I also don’t want to print that order, otherwise I have a meaningless order being printed.
I have tried all the following which don’t work:
Not working - does not parse
[ORDERS]
[<L11>{QUANTITY}x {NAME}
[{ORDER TAGS}]]
Not working - does not parse
[ORDERS]
[<L11>[[='{ORDER TAGS}' == '' ? '' : '{QUANTITY}x {NAME}']]]
{ORDER TAGS}
Any way I can do this or any other suggestions I can try?