# Changing Table Button Captions

**URL:** <https://forum.sambapos.com/t/changing-table-button-captions/6927>\
**Category:** V5 Tutorial\
**Created:** [September 7, 2015, 10:38am UTC](https://forum.sambapos.com/t/changing-table-button-captions/6927 "2015-09-07T10:38:20Z")\
**Posts on this page:** 1\
**Showing post:** 246

<div class="post-metadata">

**Author:** ![markjw](https://forum.sambapos.com/user_avatar/forum.sambapos.com/markjw/32/9942_2.png) [@markjw](https://forum.sambapos.com/u/markjw)\
**Post date:** [June 4, 2020, 2:00am UTC](https://forum.sambapos.com/t/changing-table-button-captions/6927/246 "2020-06-04T02:00:39Z")

</div>

You can do like `<if 1==1>True</if><if 1!=1>False</if>`. This works here and on most other buttons and places ternary expressions don’t work.

I did something with this a couple years ago on this topic…

> [@markjw](#):
>
> I saw it but didn’t realise it worked in entity display format. Works a treat, thanks!
> 
> ```auto
> <if '{ENTITY STATE MINUTES:Status}'!=''><color Red>{ENTITY STATE MINUTES:Status} min</color></if>
> 
> ```

More details here:

> [@SambaPOS 5.2.11 Beta Release](https://forum.sambapos.com/t/sambapos-5-2-11-beta-release/17991/9):
>
> I added a new formatting tag to create buttons that gives better feedback about state. On the gif demo you can see course selecting buttons will display in darker color to indicate selected course. [2018-08-14\_17-51-47] To implement it I added \<if\>\</if\> tag. This tag accepts an expression and render content if expression is true. \<if 1==1\>\<bold\>Caption\</bold\>\</if\>\<if 1==2\>Caption\</if\> This tag will display a caption in bold text. As we can use {LOCAL SETTING:X} tag on menu item buttons I can…

---

_[View the full topic](https://forum.sambapos.com/t/changing-table-button-captions/6927)._
