I need some help properly formatting this if statement (which compares the boolean Feed_Ready_Flag which must be true, Pump_TimeRemaining >= to 35 and <=44. If all those are true, it goes to the Feed_Prog, closes a relay momentarily; reset the Feed_Ready_Flag to false then continues on with the rest. This statement puts things in a loop and keeps going back to the Feed_Prog even though the feed ready flag was changed to false so im wondering if i have a mistake on this statement.
UKHeliBob:
What does your code use to test for equality between Feed_Ready_Flag and true true ?
I'm not testing between Feed_Ready_Flag and true true. The below code sets the flag to true then if the other 2 are true then go to the Feed program. Im actually trying to test between these 3 with the if statement above. Do i need to use 2 if statements (1 for the feed flag and another for the pump remaining time range)?
ok that was still the typo. In either case, i used integers instead of Boolean and added the conditions for a test then proceed to the feed program. works perfect. Im not sure if there is an issue with boolean but they print as 0 and 1 not true and false. im rolling with it. thanks.