Community discussions

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

the dude label, embedding a function inside quotes

Thu Jun 23, 2016 8:33 pm

I'm using an if statement to determine device type and then I want to print some oid info out like so
if(oid_raw("0.0.0etc")=1,
"station signal: oid("1.2.3etc") ",
"unknown")

The problem is that the double quotes in oid() breaks the function.  If I escape the quotes ie oid(\"1.2.3etc\") then it just prints the quotes, doesn't run the function.

any ideas?
 
syadnom
Forum Veteran
Forum Veteran
Topic Author
Posts: 794
Joined: Thu Jan 27, 2011 7:29 am

Re: the dude label, embedding a function inside quotes

Thu Jun 23, 2016 8:35 pm

note, I know how to do concatenate("value1","value2") but then it's all one big line!  If I could put a new line/ carriage return in the concatenate that would work too.

Who is online

Users browsing this forum: No registered users and 12 guests