If you only want a variable to be active within a function, you should use a global variable.

true
false

False. If you only want a variable to be active within a function, you should use a local variable. Using a global variable would make the variable accessible and modifiable throughout the entire program.