# Logic operator

**URL:** <https://tech-community.robotics.abb.com/t/logic-operator/1509>\
**Category:** Robot Controller\
**Created:** [October 31, 2007, 4:15pm UTC](https://tech-community.robotics.abb.com/t/logic-operator/1509 "2007-10-31T16:15:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marco83](https://avatars.discourse-cdn.com/v4/letter/m/dc4da7/32.png) [@Marco83](https://tech-community.robotics.abb.com/u/Marco83)\
**Post date:** [October 31, 2007, 4:15pm UTC](https://tech-community.robotics.abb.com/t/logic-operator/1509/1 "2007-10-31T16:15:13Z")

</div>

Hi everyone.

I am a new user of RAPID.

Writing a program I had to use an If/ELSEIF instruction in which the first choice applies when a variable is equal to 3 and the second one applied when it is different.

Going over the manuals I could find the logical operators:

equal =

larger than \>

smaller than \<

larger or equal \>=

smaller or equal\<=

but I could not find the simbol for “not equal”.

Does anyone know if this operator exists in rapid (it does in all the major programming languages, i.e. C, FORTRAN, Matlab,…)?

---

<div class="post-metadata">

**Author:** ![RussD](https://avatars.discourse-cdn.com/v4/letter/r/dec6dc/32.png) [@RussD](https://tech-community.robotics.abb.com/u/RussD)\
**Post date:** [October 31, 2007, 4:57pm UTC](https://tech-community.robotics.abb.com/t/logic-operator/1509/2 "2007-10-31T16:57:46Z")

</div>

Try \<\>

---

<div class="post-metadata">

**Author:** ![Semircn](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@Semircn](https://tech-community.robotics.abb.com/u/Semircn)\
**Post date:** [November 2, 2007, 5:54am UTC](https://tech-community.robotics.abb.com/t/logic-operator/1509/3 "2007-11-02T05:54:36Z")

</div>

not equal : \<\>

---

<div class="post-metadata">

**Author:** ![MI\_automation](https://avatars.discourse-cdn.com/v4/letter/m/278dde/32.png) [@MI\_automation](https://tech-community.robotics.abb.com/u/MI_automation)\
**Post date:** [August 8, 2024, 1:00am UTC](https://tech-community.robotics.abb.com/t/logic-operator/1509/4 "2024-08-08T01:00:19Z")

</div>

Tried on RobotWare 6.15.5021, \<\> is the answer.
