Thanks , that did the trick!
My next question was going to be how to pass multiple params to the function, but I played around and the following seems to work:
From my experiments I’m guessing the order of params is determined by their order in the Defaults panel for the JS Function blueprint correct?