How to change the position of a basis into the programming ?

Hi I m new here, and I wanted to know if i could use “Assign variable assessment” to modify a base or use variable to modify a base . I have 2 variables x and y I would like to assign them to a base as so:

oldX = oldX +x
oldY = oldY +y
oldZ = oldZ +z