Ok, im sure, this is a stupid question, but i didnt understand the manuel/workshops about this.
Maybe someone can explain to me?
ok, i have a funktion, which is called from another funktion like this:
function test()
{
......
while(1)
{
if (on_mouse == 1)
{
calculate_a_var();
}
if (calculated_var == 1)
{
do something;
}
}
}
Ok, now i want to calculate a var, and give it back to function test.
function calculate_a_var()
{
var calculated_var
calculated_var = 1;
}
ok, if i wanna overgive the calculated_var to function test.
do i need to define the calculated_var in function test too?
and if i write
function calculate_a_var(calculated_var)
this way, is calculated_var overgiven to function test?
Thank you for all help.
Greetings Mike