# IFF Statement with multiple Conditions

**URL:** <https://forum.kirupa.com/t/iff-statement-with-multiple-conditions/315312>\
**Category:** programming\
**Created:** [October 22, 2010, 6:18pm UTC](https://forum.kirupa.com/t/iff-statement-with-multiple-conditions/315312 "2010-10-22T18:18:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bmoeb](https://avatars.discourse-cdn.com/v4/letter/b/59ef9b/32.png) [@Bmoeb](https://forum.kirupa.com/u/Bmoeb)\
**Post date:** [October 22, 2010, 6:18pm UTC](https://forum.kirupa.com/t/iff-statement-with-multiple-conditions/315312/1 "2010-10-22T18:18:35Z")

</div>

```auto
 
//<%#IFF (Eval("SITEID").ToString() =="35" OR Eval("SITEID").ToString() == "18","<a href='/"+Eval("SeoName")+"/' ><strong>"+Eval("FRIENDLYNAME")+"</strong></a>", "")%>

```

Ok I will admit I have no Idea what I am doing, I am just trying to create a simple if statement with two conditions.

I know enough in .net to hurt myself but not enough to figure out how to create a simple statement.

Also if someone could explain what is the difference between iff and if!

Thanks
