Script is not executing....

Below command successfully execute under Terminal by pressing ENTER button

:global a
/ip hotspot user
:set a [get “00:27:0E:03:C4:21” bytes-out]]
/ip hotspot ip-binding
:if ($a= “15730745”) do={
set type=blocked number=85}


BUT it is not executing in script section.

HELP ME PLEASE.

You can not use absolute numbers in script, that is only for terminal. You have to ‘find’ what you want to set.

:global a
/ip hotspot user 
:set a [get "00:27:0E:03:C4:21" bytes-out]
/ip hotspot ip-binding
:if ($a= "15730745") do={
    set [find mac-address "00:27:0E:03:C4:21"] type=blocked
 }