What does this statement construction mean?: if (null != anim)

From the Unity documentation (Unity - Scripting API: Animator.Play), the following code example is given:

public class Move : MonoBehaviour
{
    private Animator anim;

    void Start()
    {
        anim = GetComponent<Animator>();
    }

    void Update()
    {
        if (Input.GetKeyDown(KeyCode.Space))
        {
            if (null != anim)
            {
                // play Bounce but start at a quarter of the way though
                anim.Play("Bounce", 0, 0.25f);
            }
        }
    }
}

I understand when statements like if (x != null) means but

  1. What does it mean when null and the variable positions are swapped as above?

  2. What does it mean to have your animator be null or not null? Is it just checking that an animator exists?

  3. If so, that really a necessary step?

Read post above first

  1. null means: gone, missing, or emptylist/array,
  2. !: means Not ← , aka, opposite, isn’t this.
  3. anim is referencing an Animator class
  4. anim = GetComponent(); Literally was just reading and corrected on the post i was on previous of yours. GameObject.FindWithTag(“StringValue”); seems to be most popular, FindObjectOfType"<“T”>"(); works but is very expensive on performance to do often as it looks through the Whole scene for the first object of that type that it can find. were FindWithTag, only looks at objects with tags and only looks for a specific string if it is in the Tag’s List…