Skip to content
Search…
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
    • FAQ
    • Active topics
  • Active topics
  • Forum
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
    • FAQ
    • Active topics
  • Active topics
  • Forum
Search…
  • Register
  • Login
MikroTik

Community discussions

MikroTik App
    • Announcements
    • RouterOS
    • Beginner Basics
    • General
    • Forwarding Protocols
    • Wireless Networking
    • Scripting
    • Virtualization
    • Useful user articles
    • RouterOS beta
    • Other topics
    • SwOS
    • MikroTik hardware questions
    • IoT
    • The User Manager
    • Training
    • Containers
    • The Dude
    • 3rd party tools
  1. Home
  2. Forum index
  3. RouterOS
  4. General

help me in mikrotik command (if+do)

Post Reply
  • Print view
 
aboshhab
just joined
Topic Author
Posts: 18
Joined: Tue Nov 20, 2018 9:00 am

help me in mikrotik command (if+do)

  • Quote
  • #1

Tue Nov 20, 2018 10:00 am

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
Top
Post Reply
  • Print view
    • Announcements
    • RouterOS
    • Beginner Basics
    • General
    • Forwarding Protocols
    • Wireless Networking
    • Scripting
    • Virtualization
    • Useful user articles
    • RouterOS beta
    • Other topics
    • SwOS
    • MikroTik hardware questions
    • IoT
    • The User Manager
    • Training
    • Containers
    • The Dude
    • 3rd party tools
  1. Home
  2. Forum index
  3. RouterOS
  4. General
  • Delete cookies
  • Delete cookies
Powered by phpBB® Forum Software © phpBB Limited
Design by SlickThemes
 

 

×