Tag names on togo and open tab kitchen tickets

Does anyone know a better way to get this done?
I have the kitchen print set to have the department on the header of the ticket.
Dine In
To Go Order

I have it show the names they put in if its a TO GO Customer or an OPEN TAB, but I have to have it both on the ticket. That’s all I know to do.

So I would have two empty blanks if it were just a table dine in.

Encase it in brackets [ ] it will show only if it has a value. encase entire line including the L00 formatting parts.

Hrmm will that work here? I have two tags

<L00>TAB Name: {TICKET TAG:OpenTab}
<L00>TO-GO Name: {TICKET TAG:To-Go}

So Would I do it like this?

[<L00>TAB Name: {TICKET TAG:OpenTab}]
[<L00>TO-GO Name: {TICKET TAG:To-Go}]

Yes each line but include all of it even the formatting

Edit I fixed your code to show the tags. Yes just like that.

I just did it and the names did not print out.

I would love for that to work. Might need to play with that later. For now I put it back like this.

You can try ternary too I’ll show you that later.

Ok I will not be ashamed to admit I had to look that word ternary up, but once I did I understood and I fixed it and it works now.

‘’’
[<L00>TAB Name: [{TICKET TAG:OpenTab}]]
[<L00>TO-GO Name: [{TICKET TAG:To-Go}]]
‘’’