Action when decision box is unchecked

Action when decision box is unchecked

Hello-
I have written an action on a decision box that adds a value to a currency field if the box is checked:

  1. if (input.Timestamps)
    {
        input.Rate_per_minute = (input.Rate_per_minute  +  0.25);
    }


What I cannot figure out is now to remove the value (i.e. 0.25) if the box is then unchecked by the user.  Note that this is different than doing input.Timestamps == false because I only want to subtract that amount in instances where the box was checked and the user unchecked it, as opposed to situations where the box was never checked.  Does anybody have any suggestions?


Thanks,

Chris