I need to generate a bool value, but apparently it can’t be cast…it is set true or false based upon various calcs…all of these if …else statements pile up…is there a more COMPACT way vto code …i must pass true or false to the final routine which is used for a lot of things
if (motorTime+ reverseTime > 2300)
valdidated(false);
else
valdidated(true);
if (valveTime + pumpTime < 75)
valdidated(false);
else
valdidated(true);
if (relayTime Time >100)
valdidated(false);
else
valdidated(true);
wanted: validated((bool)(relaytime<=99))…but won’t work…want something compact like this
NOTE these checks are shown together TOGETHER HERE for illustration, they are given in various parts of the program