ERROR C1070 using "=>"


william

Recommended Posts

Posted

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

Posted

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...

 

Archived

This topic is now archived and is closed to further replies.