Path Mapper with Variable Input

Hi,

Is there a possibility to modify branch names of a tree with a viriable input X (so its dynamic)?

Lets say I would like to modify the branch names, by adding a value of X (dependent of some other variable).

so lets say X=2

{0} + X → {2}
{1} + X → {3}
{2} + X → {4}

thank you in advance,