Append a string to a command in ppp variable

Hello,

I’m currently trying the following:

Set the user of a ppp device to serialnumber + string. I’ve tried a few things but it won’t work. It allways stops at the dash saying ‘expected and of command’.

It should look like this

user=[/system routerboard get serial-number]-guest-network

Is this possible?

Best regards

See examples … use doublequotes around all message

:log info  "$[/system identity get name]: Host table nor initialized."

or

:local srchost "192.168.1.1"
:local komunikat ("VPN_TUNNEL: $[/system clock get time], $[/system clock get date], $srchost DOWN");