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 Quote 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... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.