I’d like some help with something please.
Theres probably some incredibly easy solution to this but when I try to declare a value within if or try tags, and i try to call them from outside, I just get the error ‘the name ‘x’ does not exist in the current context’
Any suggestions? Here’s an example of what i mean
try {
bleh = 5; }
x = bleh
Declare your variables outside your try blocks. Declaring a variable allows you to assign it, but it is only accessible within scope. This is a fundamental concept in programming languages and should should read the article linked above.