Community discussions

MikroTik App
 
syadnom
Forum Veteran
Forum Veteran
Topic Author
Posts: 802
Joined: Thu Jan 27, 2011 7:29 am

In device label, how to use a variable in a function

Thu Jun 23, 2016 7:47 pm

I'm trying to make a customized label for devices.  I want a function to determine device type and output based on that.  

I've tried:
[if("AP"="AP","AccessPoint","other")]

this returns either 'AccessPoint' or 'other' just like you'd expect.

but

[if([Device.Type]="AP","AccessPoint","other")]

this returns literally
[if(AP="AP","AccessPoint","other")]
in the label.  

How do I get that device type into the if statement? 
 
User avatar
amt
Long time Member
Long time Member
Posts: 529
Joined: Fri Jan 16, 2015 2:05 pm

Re: In device label, how to use a variable in a function

Fri Jul 01, 2016 4:41 pm

is possible to take system identify and add it to device name in dude ?

Who is online

Users browsing this forum: No registered users and 53 guests