Community discussions

MikroTik App
 
tiftok
newbie
Topic Author
Posts: 49
Joined: Thu Apr 07, 2016 1:40 pm

error in if elase

Sat Apr 16, 2016 6:38 pm

hello
what is the error
?
[admin@TIPLINKMICO] > :global c 1;
[admin@TIPLINKMICO] > 
[admin@TIPLINKMICO] > if ($c = 1) do={:global c 2;}else={ :global c 4;}
expected end of command (line 1 column 30)
[admin@TIPLINKMICO] > 

i test but error
: if ($c = 1) do={:global c 2;}else={ :global c 4;}
i test remove else and work fine :(
please help me
 
User avatar
soonwai
Member Candidate
Member Candidate
Posts: 186
Joined: Mon Feb 06, 2012 10:50 pm
Location: Kuala Lumpur

Re: error in if elase

Sat Apr 16, 2016 9:56 pm

Insert a space before else.
if ($c = 1) do={:global c 2} else={ :global c 4}
 
tiftok
newbie
Topic Author
Posts: 49
Joined: Thu Apr 07, 2016 1:40 pm

Re: error in if elase

Sun Apr 17, 2016 12:33 am

thank you
:D
its work
 
User avatar
soonwai
Member Candidate
Member Candidate
Posts: 186
Joined: Mon Feb 06, 2012 10:50 pm
Location: Kuala Lumpur

Re: error in if elase

Sun Apr 17, 2016 6:26 am

No problem, have fun!

Who is online

Users browsing this forum: No registered users and 47 guests