Ported 'ConvertAssignmentToIfAction'.