Should I be able to call a function from within a function?


#1

(Python) When I call a function that I have defined from within another function that I have defined, I get an error:
TypeError: Cannot read property ‘value’ of undefined

Should I be able to call a function from within a function? Is this related to global variables not working?


#2

It does work in some levels like What in Carnation.
Can you give me an instance where this happens and maybe a screenshot?


#3

You should. Maybe its a flaw in your code. Could you please post your code in FAQ formatting or send a screenshot as @Hellenar suggested?