Code: Select all
:global a true
:global b true
:if ($a = true) do={:global InterfaceName "ether1"}
:if ($b = true) do={:global MacAddress [/interface ethernet get [find where name=$InterfaceName] mac-address]}
using command
Code: Select all
/system script run <script id>
it does not work, and if you run this script
Code: Select all
:global a true
:global b true
:if ($a = true) do={:global InterfaceName "ether1"}
:global InterfaceName $InterfaceName
:if ($b = true) do={:global MacAddress [/interface ethernet get [find where name=$InterfaceName] mac-address]}
using the same command
Code: Select all
/system script run <script id>
does it work?
And if you run this script using copying and pasting into the terminal, both options work
This is bug?