PredicateExpression: setting precedence

Posts   
 
    
slnsalim
User
Posts: 10
Joined: 12-Jan-2004
# Posted on: 12-Jan-2004 15:43:32   

I am aware of the AddWithOr and AddWithAnd methods but is there a way I can group them so I can set their precedence (akin to using brackets in SQL)? The scenario is I have two OR statements and one AND statement and I want to groups the OR statements so the AND is applied to both.

Ta simple_smile

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 12-Jan-2004 16:43:16   

Of course simple_smile You can group them inside predicate expressions you can add as a predicate. See Filtering and sorting in the documentation which contains an example of this. simple_smile

Frans Bouma | Lead developer LLBLGen Pro
slnsalim
User
Posts: 10
Joined: 12-Jan-2004
# Posted on: 13-Jan-2004 10:20:27   

Thanks. simple_smile