if else condition

Posts   
 
    
neos
User
Posts: 8
Joined: 03-Jan-2014
# Posted on: 17-Jan-2014 12:11:36   

how to set if else condition for this brandtype 1,2,3

if brandtype==1 then this will execute

bucket.PredicateExpression.Add(new FieldCompareValuePredicate(BrandFields.BrandType, null, ComparisonOperator.NotEqual, 2));

else

rest of code

how do i do this.as brandtype is coming from database which has multiple entrys

Walaa avatar
Walaa
Support Team
Posts: 14994
Joined: 21-Aug-2005
# Posted on: 17-Jan-2014 14:41:10   

How would you do it in plain SQL?