What does [ "$NAME" = "John" ] test?
[ "$NAME" = "John" ]
Whether NAME's string value exactly equals John, with quoting protecting empty or spaced values.
Whether a file named John exists.
It assigns John to NAME.
Whether NAME is numerically equal to John.