over 10 years ago
Block access the data in normal way as the other normal function do. Block can access any class variable or function variable out side it but cannot modified it.
output will be :
But if you try to assing the new value to variable x. then it will not change the value. For example
so if you want change the value then you can user __block before the variable. for example
then it upper block will the expected result. And it will add the both variable.
0 Comment(s)