william

ERROR C1070 using "=>"

Recommended Posts

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

Share this post


Link to post
Share on other sites

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

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now