Print Page | Close Window

Reverse Polish notation question

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce Classic
Forum Discription: For .NET 2.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=967
Printed Date: 22-Apr-2025 at 8:55pm


Topic: Reverse Polish notation question
Posted By: BrooksAdair
Subject: Reverse Polish notation question
Date Posted: 15-Oct-2008 at 9:45am
I am just getting into OQL and I need to build a query that ORs 7 conditions together. I know if it were 2 conditions I would put the call to AddOperator(EntityBooleanOp.Or) after the second call to AddClause(). Where do I put it for 7 conditions?



Replies:
Posted By: GregD
Date Posted: 19-Oct-2008 at 10:48am
Condition1
Condition2
OR
Condition3
OR
Condition4
OR
Condition5
OR
Condition6
OR
Condition7
OR
 


Posted By: BrooksAdair
Date Posted: 20-Oct-2008 at 6:31am
Thanks for the reply.

I looked up some info on RPN for scientific calculators and I had tried the following before I got your reply:
Condition1
Condition2
OR
Condition3
Condition4
OR
OR
Condition 5
Condition 6
OR
OR
Condition 7
OR

Which seems to work. Are your query and my query equivalent?



Print Page | Close Window