Click here to Skip to main content
15,900,701 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Guys,
I Have the problem below:
My string variable :Condition = "(true | true & false (true |true) & false)"
This variable is created dinamicaly.

Now i need to know if this expression is true or false.

The ideal would be put a kind of "ExpressionToBool", but, we all know that's impossible. Do I have to create my own expression's interpreter? Or exists a better way to do this?


Tips?

Tks a lot!
Posted
Updated 28-Jul-10 8:47am
v2

1 solution

Solved!!! :)
:-D :laugh: :)
by By Shawn Wildermuth

Runtime C# Expression Evaluator[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900