# Beanshell Operators - @

**URL:** <https://developer.sailpoint.com/discuss/t/beanshell-operators/24032>\
**Category:** IIQ Discussion and Questions\
**Tags:** rules, identityiq\
**Created:** [January 11, 2024, 9:16pm UTC](https://developer.sailpoint.com/discuss/t/beanshell-operators/24032 "2024-01-11T21:16:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![RSanders](https://avatars.discourse-cdn.com/v4/letter/r/ecccb3/32.png) [@RSanders](https://developer.sailpoint.com/discuss/u/RSanders)\
**Post date:** [January 11, 2024, 9:16pm UTC](https://developer.sailpoint.com/discuss/t/beanshell-operators/24032/1 "2024-01-11T21:16:46Z")

</div>

### Which IIQ version are you inquiring about?

Version 8.3

### Share all details related to your problem, including any error messages you may have received.

Afternoon!

I hope this is a simple question, but up until now, for some logical operators (and, less than), I have to use & in place of &, and \< in place of \<. I was going through one of our custom rules, and I noticed that whomever wrote it used @and…and it works! I was wondering if there are any other operators like that. I also tried @lt in place of \<, which on a keyboard like mine, using @lt is easier. So, is there a list somewhere that has all the operators I can use @ with?

---

<div class="post-metadata">

**Author:** ![patrickboston](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/patrickboston/32/5876_2.png) [@patrickboston](https://developer.sailpoint.com/discuss/u/patrickboston)\
**Post date:** [January 12, 2024, 12:45am UTC](https://developer.sailpoint.com/discuss/t/beanshell-operators/24032/2 "2024-01-12T00:45:18Z")

</div>

Last section of this guide [Basic Syntax](http://www.beanshell.org/manual/syntax.html)

---

<div class="post-metadata">

**Author:** ![kjakubiak](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/kjakubiak/32/7052_2.png) [@kjakubiak](https://developer.sailpoint.com/discuss/u/kjakubiak)\
**Post date:** [January 12, 2024, 2:08pm UTC](https://developer.sailpoint.com/discuss/t/beanshell-operators/24032/3 "2024-01-12T14:08:28Z")

</div>

You can also surround code with `<![CDATA[YOURCODE]]>` tags. Then beanshell parser will translate all “weird” characters to the ones understandable by IIQ.

---

<div class="post-metadata">

**Author:** ![drosenbauer](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/drosenbauer/32/3381_2.png) [@drosenbauer](https://developer.sailpoint.com/discuss/u/drosenbauer)\
**Post date:** [January 15, 2024, 5:02pm UTC](https://developer.sailpoint.com/discuss/t/beanshell-operators/24032/4 "2024-01-15T17:02:14Z")

</div>

It’s not the Beanshell parser that’s doing this, but rather ordinary XML. The `CDATA` tag just means that the XML parser shouldn’t interpret any characters within the brackets. The text is rendered into a form recognizable by Beanshell long before the BSH executor sees it.

If you use the Eclipse plugin, you can have it insert CDATA tags around any Beanshell snippets that are more than a certain number of lines, on export.

---

<div class="post-metadata">

**Author:** ![Remold](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/remold/32/3275_2.png) [@Remold](https://developer.sailpoint.com/discuss/u/Remold)\
**Post date:** [January 15, 2024, 6:05pm UTC](https://developer.sailpoint.com/discuss/t/beanshell-operators/24032/5 "2024-01-15T18:05:05Z")

</div>

If you are using Visual Studio Code, you can use the [Sailpoint IIQ Development Accelerator](https://marketplace.visualstudio.com/items?itemName=AndreiStebakov.sailpoint-iiq-dev-accelerator) which also automatically uses the CDATA tag 😃

– Remold

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [March 30, 2024, 10:36pm UTC](https://developer.sailpoint.com/discuss/t/beanshell-operators/24032/7 "2024-03-30T22:36:11Z")

</div>

Closed on March 30, 2024, 10:36pm UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
