Skip to Content
0
Jan 15, 2019 at 05:38 AM

Returning a global variable value in custom function- BODS

495 Views

Hi Expert,

is there any way to return a global variable which has been initialized inside nested loop(s).

For below given example

$var1 = '0';

$var2 = '1'

$var3 = '';

While ( $var = '1')

begin

$var = $var-1 ;

$var3 = $var1 ;

end

return $var3 ;

i am trying to return $var3 value as output but i get only NULL.

is there any way to return the value.