Selecting and Merging
Posted: Thu Aug 09, 2012 1:59 pm
Hello.
I have a bit problem and i do not knowhow to do it. For example: I have 3 bool variable (e.g. a, b, c). I have 3 string variable (e.g. a_name, b_name, c_name).
Now i want to generate report:
- If a is true and b is true and c is true, report should look like:
=======
a_name
b_name
c_name
=======
- If a is true and b is false and c is true, report should look like:
=======
a_name
c_name
=======
- If a if false and b is false and c is true, report should look like:
=======
c_name
=======
So if bool variable is true show string variable, if it is false do not show and merge other.
I do not want something like that:
- If a is true and b is false and c is true, report look like:
=======
a_name
c_name
=======
I hope you understand what i want to do.
Thanks in advance for any help.
I have a bit problem and i do not knowhow to do it. For example: I have 3 bool variable (e.g. a, b, c). I have 3 string variable (e.g. a_name, b_name, c_name).
Now i want to generate report:
- If a is true and b is true and c is true, report should look like:
=======
a_name
b_name
c_name
=======
- If a is true and b is false and c is true, report should look like:
=======
a_name
c_name
=======
- If a if false and b is false and c is true, report should look like:
=======
c_name
=======
So if bool variable is true show string variable, if it is false do not show and merge other.
I do not want something like that:
- If a is true and b is false and c is true, report look like:
=======
a_name
c_name
=======
I hope you understand what i want to do.
Thanks in advance for any help.