# Replace entries in a single branch only of an existing tree with several branches based on an if condition

**URL:** <https://root-forum.cern.ch/t/replace-entries-in-a-single-branch-only-of-an-existing-tree-with-several-branches-based-on-an-if-condition/61691>\
**Category:** Newbie\
**Created:** [September 18, 2024, 5:07am UTC](https://root-forum.cern.ch/t/replace-entries-in-a-single-branch-only-of-an-existing-tree-with-several-branches-based-on-an-if-condition/61691 "2024-09-18T05:07:29Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![dastudillo](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/dastudillo/32/17280_2.png) [@dastudillo](https://root-forum.cern.ch/u/dastudillo)\
**Post date:** [September 18, 2024, 6:32am UTC](https://root-forum.cern.ch/t/replace-entries-in-a-single-branch-only-of-an-existing-tree-with-several-branches-based-on-an-if-condition/61691/2 "2024-09-18T06:32:27Z")

</div>

> [@Changing the values in the branch](https://root-forum.cern.ch/t/changing-the-values-in-the-branch/52683):
>
> I need to change the data values in the branch: a given number needs to be subtracted from each numeric value. How can this be implemented? \_ROOT Version: 6.26/10 \_Platform: pycharm community Compiler: Not Provided

---

_[View the full topic](https://root-forum.cern.ch/t/replace-entries-in-a-single-branch-only-of-an-existing-tree-with-several-branches-based-on-an-if-condition/61691)._
