does somebody know how I can pass a value and a variable to a function, so that it uses them inside a block
For example,
testFunc[var_, varVal_] := Block[{var = varVal}, Print[varVal + 5]]
marks `var` inside the `Block` in red. I need to do that, because I need to call the function with different values for different variables, but I want it all done locally, so it does not change the values of these variables outside the function