Function to variable

really what this post said, need to see your code what’s happening there else really difficult to figure out what is the problem