# Help with printer template language

**URL:** <https://forum.sambapos.com/t/help-with-printer-template-language/4775>\
**Category:** V4 Question\
**Created:** [March 26, 2015, 8:17pm UTC](https://forum.sambapos.com/t/help-with-printer-template-language/4775 "2015-03-26T20:17:55Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![QMcKay](https://forum.sambapos.com/user_avatar/forum.sambapos.com/qmckay/32/27925_2.png) [@QMcKay](https://forum.sambapos.com/u/QMcKay)\
**Post date:** [March 27, 2015, 1:32pm UTC](https://forum.sambapos.com/t/help-with-printer-template-language/4775/2 "2015-03-27T13:32:02Z")

</div>

> [@reych9](#):
>
> the printing language was something created exclusively for the software or is it an existing language, and if so, where can look for references?

The “Printer Tags” are a SambaPOS feature. Forum search reveals this:

> [@Printer Template Formatting Tags](http://forum.sambapos.com/t/printer-template-formatting-tags/328):
>
> ##General \<T\> (Title) : When used it will format line as a title. \<F\> (Fill) : For example \<F\>- creates a line with - chars or \<F\>= creates a line with = chars. \<EB\> (Enable Bold) Prints everything Bold until \<DB\> command. \<DB\> (Disable Bold) Ends \<EB\> command \<Jxy\> (Justified) Justifies a line from pipe char. \<J00\>Total:|0.00 separates line from pipe (|) char. It aligns Total: part left and 0.00 part right. When used on a ESC/POS compatible ticket printer numeric parts sets font size. Fi…

* * *

> [@reych9](#):
>
> How could I do something like “if else” (conditionals) using the printing language, that is, if QUANTITY is less than 1 do not put it in the ticket?

No, not in V4. In upcoming V5, you will be able to do this using the Ternary Operator.

* * *

> [@reych9](#):
>
> How I can sort the tags of a product ?, I know how to order the products, but how can I sort tags order for a product in the ticket?

Use the forum search function…

> [@\[New 4.1.71\] Print Group Ordering with Custom Product Tags](http://forum.sambapos.com/t/new-4-1-71-print-group-ordering-with-custom-product-tags/3079):
>
> You can group items by Custom Product Tags with [GROUP|PRODUCT TAG:X] switch. I’ve added custom sorting for that switch. Configure new Custom Product Tag. New editor will appear on product pages. Use new Product Tag Editor to configure all tags. Configure Kitchen Print Template to activate grouping. You can define sort order of tag values by typing comma separated tags inside grouping switch. The syntax is: [ORDERS GROUP|PRODUCT TAG:\<tag name\>:\<s…

> [@\[Fixed 4.1.73\] Order Tag Sorting Printing error](http://forum.sambapos.com/t/fixed-4-1-73-order-tag-sorting-printing-error/3110/4):
>
> Can you try using {SORTED ORDER TAGS} as shown in the screen shot?

---

_[View the full topic](https://forum.sambapos.com/t/help-with-printer-template-language/4775)._
