Outputing as Nil even after being defined properly earlier in the program

I wrote a post on this subject a while back, the first half explains scoping:

2 Likes