I just got caught by surprise because management thinks it's a good idea to use Boolean expressions in calculations such as
x = (y < 4) * 1 + (z < 8) * 4 ...
I use NCalc for formula evaluation, unfortunately NCalc complains because I'm trying to multiply an integer and a bool.
Is there a way to expand NCalc so false is converted to 0 and true is converted to 1 or will I have to dig deep and make some modifications to the NCalc codebase?