Variable in CAYENNE_IN / OUT function not available outside of function

I was wondering how his code was able to pass the variable from CAYENNE() function to CAYENNE() function.