Who did tell you to put only
:global gVar in brackets?
For a script to run, its not needed to use {}
Only when copy paste to cli, then the whole block needs to be in {}
PS it will be blank at first run, since it has not stored any thing in its memory, so that is normal operation.
Tested on a 6.49.9 router working fine, so this should work on 6.48 as well.
Red first run, green second run.
Cli only sown script once, since I just used arrow up and enter to run it a second time.
.
script.png
You do not have the required permissions to view the files attached to this post.