name[=value] - get value

How get value of the name[=value] into script ?

IE.

{
/ip address add address=$ipaddress interface=ether1
}

The line command:

myscript ip=192.168.0.2

(sorry for bad english)

I don’t believe you can use arguments to a script. But you can assign global variables.

ie:

:global IPAddr 192.168.0.2

then

/ip address add address=$IPAddr interface=ether1

Does that help? :global variables live as long as the router is running. Once rebooted you lose them.

Would it be possible to have a startup script that we can set global variables into?