Q:

ng-class multiple condition in on statement

I need to check if two things is true to decide the class. I have been trying to find a solution for this because i believe this should be a pretty common problem. Maybe i'm just searching for the wrong things. 
I want to have two conditions in one statement, if that is what it is called?
I've tried similar things to this:
   ng-class="{'in-behalf-of-background-color' : parameters.Username == quote.InBehalfOf } ,{'not-in-behalf-of-background-color' : ((parameters.Username != quote.InBehalfOf) && (quote.InBehalfOf != 'null'))}"

As you can see i want to check parameters.Username != quote.InBehalfOf and also if quote.InBehalfOf != null in the same condition. Is this possible?

A:

try this code;
You want multiple condition then define one object and define conditions with key value pair {key1:value1, key2: value2}
ng-class="{'in-behalf-of-background-color' : parameters.Username == quote.InBehalfOf, 'not-in-behalf-of-background-color' : ((parameters.Username != quote.InBehalfOf) && (quote.InBehalfOf)) }"

