script check value in options

how to check what value is avalible in options band (like TAB 2x)
/interface wireless set wlan_164 band=


reg.
ManyX

/interface wireless info print

look at “supported-bands” parameter

how can I chcek is “5ghz-n-10mhz” avalible mode

{
:local band;
:set band [/interface wireless info get wlan_164 [find supported-bands=“5ghz-n-10mhz”]];
:put $band
}

what is wrong?


reg.

ManyX

:foreach i in=[/interface wireless info get wlan_164 supported-bands] do={
:if ($i = “5ghz-n-10mhz”) do={ :put “supported”; }
}

thanks