Using a variable within a string

How do I use a variable that is immediately followed by a string?
If this is my variable:

:global TEST "192.168.0.1"

and I want to use it like this:

:put $TEST/24

to write “192.168.0.1/24” to the screen, it fails.
Is there a right way to do this?

{
:global TEST “192.168.0.1”
:put (“$TEST” . “/24”);
}

Thanks!