how to do 2 "if" condition in one script?

Hello ,
First I want to say that I’m new at this world of RB Mikrotik - so the question maybe not so clever.

2 things I want to know (for start..):

  1. where can I find simple samples of script to learn from ?
  2. I want to make two “if” conditions , one after another in one script:
    the first condition should be this idea:
    if ping 10.0.0.1=0 count=5 do…(change setting )…
    after the change we will do this:
    if ping 10.0.0.1=0 count=50 do…(reset for the modem)…

thank you for the help,

Dave.

I don’t usually link to Google but it’s a lot easier this time:
http://www.google.com/search?aq=f&gcx=w&ie=UTF-8&q=wiki+mikrotik+script
That links to the official manual as well as lots and lots of user written content.

To have two if statements just write two if statements. Pseudo-code:

:if (condition1) do={
  :change-setting;
}
:if (condition2) do={
  :reset-modem;
}

this is very helpful , :slight_smile:

thank you for now!