What have I got wrong with setting up my OnRep function?

Hi folks, I am trying to use an OnRep function to make it so that my variable goes up or down by increments of five when it is changed instead of one. I have tried to make it so that it checks whether the remainder of the variable’s value divided by five is zero, and if that is false then it does some maths to try to make the value up to a number that is a multiple of five. However, due to my being still very new to this, I’m clearly doing something wrong somewhere because my function does not seem to be doing anything to change/update the variable in the way I expect.

This shows the showjump created by the Blueprint and that the ‘Pole Height’ variable is not being set to a multiple of five/incremented by five like I would like it to:

Here is the relevent part of my showjump Blueprint’s construction script:

and here is the OnRep function:

The ‘Pole Height’ variable is itself part of a Struct array, which I’ve got determining how many poles appear on the jump, each of their colours as well as height:



I have been trying to problem solve this by myself and have found some stuff on it being tricky to update variables that are part of a Struct, like mine is, but as far as I can tell (with my limited experience) I think I have plugged things back in correctly per the examples I’ve found. I’m not trying to do anything that runs while the game is running/ is part of gameplay, these Blueprints are supposed to be things that speed up level creation.

Any pointers to unmuddle this puzzle is very much appreciated!