Ive started coding for Wordpress and the coding standards recommend using Yoda conditions.
if ( true == $the_force ) { $victorious = you_will( $be ); } But I also do some Android development, Javascript and have plans for robotics programming and some languages don't like Yoda style.
Im planning NOT to use Yoda conditions for WP for the sake of consistency, I dont know if its going to cause any problems.
if($the_force = 42)is valid and likely a bug). Try writing that bug in Java:int theForce; if(theForce = 42) { ... }and see what you get. Then ask "why am I doing this in the first place?"