المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : How to select && or || within formula at run time



C# Programming
05-06-2009, 06:56 AM
I wish to have a checkbox to select whether to use a && or || within a algorythm, does anyone know how I might do this, for example:

bAndOr == true then use

a = b && c
else
a = b || c

because I will be using multiple AndOrs I need to be able to select as needed.

I appreciate any help
If you have a better way of handling this please let me know.

Thanks in advance,
Michael