Transfer parameter-value from loop to function

Good morning,

yes there are 4 different scopes, I think the int matchtime before setup we dont need.

The second and third int matchtime i like to use to give the parameter matchtime an value, which one is called up at the function matchtime.

I do understand, that every loop, in which i give the parameter an value, is an different scope.

What i do not understand is, how i can make the value of the parameter visible for the function.

How i can assign a value to an parameter within scope 'A' and work with this value at a function, if the function is outside of this scope 'A'?