Ported 'ConvertAssignmentToIfAction'.
Merge pull request #435 from TheCommieDuck/assignment-to-if

Ported 'ConvertAssignmentToIfAction'.