Variables inside if statements?


#1

What is the reason that some variables are created within an if statement and some are outside the loop? What’s the difference?


#2

Are you able to provide an example, or two?