watergrinder
MIS
Could anybody tell if there is a way to return values from nested function calls?
Ex: if something then
return 1
else
return 0
fi
func1 --- func2 ---- func3. Action needs to be taken at func1 when something happens in func3. Currently I am using the above way in both func3 and func2. Is it the only way to do it?
Ex: if something then
return 1
else
return 0
fi
func1 --- func2 ---- func3. Action needs to be taken at func1 when something happens in func3. Currently I am using the above way in both func3 and func2. Is it the only way to do it?