Fix bug with function nodes.

Assignment operator was being used instead of a comparison operator.