# Condition on splitbutton

**URL:** <https://forum.radzen.com/t/condition-on-splitbutton/2471>\
**Category:** Angular\
**Created:** [January 29, 2020, 12:16pm UTC](https://forum.radzen.com/t/condition-on-splitbutton/2471 "2020-01-29T12:16:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcanavar](https://forum.radzen.com/letter_avatar_proxy/v4/letter/m/ee59a6/32.png) [@mcanavar](https://forum.radzen.com/u/mcanavar)\
**Post date:** [January 29, 2020, 12:16pm UTC](https://forum.radzen.com/t/condition-on-splitbutton/2471/1 "2020-01-29T12:16:10Z")

</div>

Hi,  
I have a splitbutton with three options , values 1 , 2, 3

If I use the click event and want to identify witch option is clicked , but the condition I can not get it to work ,  
${event.id==2} , doesn't work  
${event.id} == 2 , doesn't work

${this.event.id== 2}, not ..

 ![image](https://forum.radzen.com/uploads/default/original/2X/c/cc434f8dbab9a5ed2683dbccae6d085a768fdb0c.png)

What am I missing and how to deal with " && " or " and " .. not used to the syntax

please advice

---

<div class="post-metadata">

**Author:** ![mcanavar](https://forum.radzen.com/letter_avatar_proxy/v4/letter/m/ee59a6/32.png) [@mcanavar](https://forum.radzen.com/u/mcanavar)\
**Post date:** [January 29, 2020, 12:23pm UTC](https://forum.radzen.com/t/condition-on-splitbutton/2471/2 "2020-01-29T12:23:57Z")

</div>

It is 🙂  
${event.value==2} and ${event.text}  
so obvious
