# rule (IF not) function

**URL:** <https://community.f5.com/t/rule-if-not-function/1964>\
**Category:** Technical Forums\
**Tags:** icontrol, dev, v4, devops\
**Created:** [July 18, 2005, 2:53am UTC](https://community.f5.com/t/rule-if-not-function/1964 "2005-07-18T02:53:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kykong\_107132](https://avatars.discourse-cdn.com/v4/letter/k/8491ac/32.png) [@kykong\_107132](https://community.f5.com/u/kykong_107132)\
**Post date:** [July 18, 2005, 2:53am UTC](https://community.f5.com/t/rule-if-not-function/1964/1 "2005-07-18T02:53:33Z")

</div>

Hi All,

Wondering is there any IF NOT function in 4.5.x irules? example,

if not http\_uri ends\_with “/”

used pool pool1

else

discard

or is that any other method we can used to achieve the similar output.

Thank

---

<div class="post-metadata">

**Author:** ![Joe\_Pruitt](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/joe_pruitt/32/8438_2.png) [@Joe\_Pruitt](https://community.f5.com/u/Joe_Pruitt)\
**Post date:** [July 18, 2005, 4:41am UTC](https://community.f5.com/t/rule-if-not-function/1964/2 "2005-07-18T04:41:46Z")

</div>

If you were wondering where your previous post went, it didn’t disappear - I moved it to the iRules v4.x forum. iControl is our management programming interface and your question was about iRules. Someone from our 4.x team should respond over there.

-Joe

---

<div class="post-metadata">

**Author:** ![Joe\_Pruitt](https://d1p9zq3aats0t8.cloudfront.net/user_avatar/community.f5.com/joe_pruitt/32/8438_2.png) [@Joe\_Pruitt](https://community.f5.com/u/Joe_Pruitt)\
**Post date:** [July 18, 2005, 4:24pm UTC](https://community.f5.com/t/rule-if-not-function/1964/3 "2005-07-18T16:24:03Z")

</div>

Check out the iRules v4.x forum for the response.

-Joe
