is it posible to make a global variable,set a new value of the variable in a function and then test in a new function something with that variable from the first function,here is a example of what i am asking:
Code:
new variable
public test()
{
variable =1
}
public test2()
{
if (variable ==1)
...
}
i know its wron what is did in this code but i dont know how to say