Assume the Payment_Status is 'Completed'
Then as per the above statement it would go through the first line in the if condition and assign the value 'Closed' and move out.
It will never reach the statement in Bold.
What would you want when the Payment Status is Completed (Closed or Successful or Closed Successful)
As per the above statement it can be both.
If you can give your exact requirements without the if condition then we can work at creating the statement.