Community discussions

MikroTik App
 
tuncerinan
just joined
Topic Author
Posts: 8
Joined: Mon May 21, 2018 10:26 am

name of variable

Sat Sep 15, 2018 12:17 pm

Hi Dear,

How ı create a new variable with variable name. For ex. :global 1 3; :global ether$1 00:21:55:22:33:33.

Thanks.
 
User avatar
ADahi
Member Candidate
Member Candidate
Posts: 209
Joined: Thu Sep 21, 2017 7:16 pm
Location: Iraq, Ninavah
Contact:

Re: name of variable

Sat Sep 15, 2018 1:40 pm

{
:local x 10;
:local y $x;
:put ($y);
}
y = x = 10
 
tuncerinan
just joined
Topic Author
Posts: 8
Joined: Mon May 21, 2018 10:26 am

Re: name of variable

Sat Sep 15, 2018 5:04 pm

not e lıke this for ex. for i from=1 to=10 do={ :global $i 0 }
 
User avatar
ADahi
Member Candidate
Member Candidate
Posts: 209
Joined: Thu Sep 21, 2017 7:16 pm
Location: Iraq, Ninavah
Contact:

Re: name of variable

Sat Sep 15, 2018 7:26 pm

:global x 10;
if you need to change value of x
:set $x 20;
 
runbound
Member Candidate
Member Candidate
Posts: 125
Joined: Fri Apr 19, 2013 9:28 am

Re: name of variable

Sun Sep 16, 2018 4:00 pm

sir @ADahi can u help me please one more time pls
viewtopic.php?f=9&t=138991

Who is online

Users browsing this forum: No registered users and 29 guests