Hi everybody
I am trying to find the solution for the problem stated in the topic,
but so far without any result.
Let's see the problem.
I have set of conditions and the description (logical sentence) how
should be these conditions connected with each other. See how does it
look in xml
<root>
<conditions>
<condition term = '1'/>
<condition term = '2'/>
</conditions>
<logicOperation>(#1 and #2)</logicOperation>
</root>
I store the conditions results in bool array. How can I get the
logicOperation result having (#1 and #2) as a string ?
I already converted the given logicOperation into the form (true &&
false). However it is still string, and the during the converting to
bool sample is impossible.
I have the idea to loop thru all "true" and "false" strings and
converting them to bool. The problem is how to store logicOperation
during transformation. I mean: How to store (true && false) where true
is of bool type and false is of string type? I think it is impossible.
Maybe someone of you have the tricky idea how to do it ?
Thanks in advance
Jakub