Page 1 of 1

help me in mikrotik command (if+do)

Posted: Tue Nov 20, 2018 10:00 am
by aboshhab
hello every one

i want a command line to put comment in user comment section if empty

if (/ip hotspot user get not-comment (find where profile=512k)) do: (/ip hotspot user set (find where profile=512k) comment="1")

if empty add "1" in the comment, if there any thing in the comment section do nothing

thanks