Output value for a script

I wrote a simple script which outputs a value, but I can’t see where it’s being printed when I run the script.

Open Console using ~ key, and result will be printed there after you run the script.

@alex.paramonov, it’s not being printed out (the console does not get shown as well)

If you open console (~) before running the script, result will be shown. This behavior is not expected here. I registered this in our bug tracking system.
Thanks for the report!