william Posted August 22, 2018 Share Posted August 22, 2018 I have a sequence that works using PU_data3 = parse(datain,3,",") if((PU_data3 > PU_RAIN_C[0])) PU_data3.time = systime() PU_RAIN_C.addValue(PU_data3) //pick out RAIN COUNTS endif but if I change the if statement to if((PU_data3 => PU_RAIN_C[0])) I get the error code C1070. I do not understand why => cannot be used in a IF statement. How can I do this ? Thanks Bill Link to comment Share on other sites More sharing options...
AzeoTech Posted August 22, 2018 Share Posted August 22, 2018 Because => isn't a valid operator, >= is the correct one. The = always comes second on operators with two characters, so: >=, <=, +=, -=, etc. though of course += and -= aren't comparison operators... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.