local variables not showing in environment

When I declare a global variable such as

:global b;

and go to /environment print
“b”=[:nothing]

is displayed

When I declare a local variable such as

:local c;

and go to /environment print

there is no reference to the c variable.

Any idea why?

Did you set $b to anything? If you just initialize it, it’s going to be :nothing until you assign a value.

Local variables are local.

I did not set $b to anything so I understand why the evironment shows it as nothing.

Thanks