assigning bools causes a warning?

 self.targetBack.visible = self.targetFront.visible = YES;


these are two bools i am assigning together on one line
appcode says: "Using '=' in conditional expression" in yellow
am i doing something wrong? or

thanks

Please sign in to leave a comment.