# Negate expression to put in "disabled" property

**URL:** <https://forum.radzen.com/t/negate-expression-to-put-in-disabled-property/6366>\
**Category:** Angular\
**Created:** [January 19, 2021, 10:59pm UTC](https://forum.radzen.com/t/negate-expression-to-put-in-disabled-property/6366 "2021-01-19T22:59:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mgiammarco](https://forum.radzen.com/user_avatar/forum.radzen.com/mgiammarco/32/896_2.png) [@mgiammarco](https://forum.radzen.com/u/mgiammarco)\
**Post date:** [January 19, 2021, 10:59pm UTC](https://forum.radzen.com/t/negate-expression-to-put-in-disabled-property/6366/1 "2021-01-19T22:59:34Z")

</div>

Hello,  
If I put ${security.user.isInRole('am')} expression in disabled property of a checkbox it works perfectly.  
Unfortunately I want the opposite: if the user is in role "am" the checkbox should be not disabled.  
No matter what I do (putting ! using == and so on) the negation does not work, it is always disabled.  
Probably I am missing something really stupid.  
Can you help me?  
Thanks,  
Mario

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [January 20, 2021, 5:38am UTC](https://forum.radzen.com/t/negate-expression-to-put-in-disabled-property/6366/2 "2021-01-20T05:38:47Z")

</div>

Hi @mgiammarco,

Does `${security.isInRole('am') == false}` work? Can you check what the generated code is?
