evaluate $OS for current node, inside chs

   2764   3   1
User Avatar
Member
390 posts
Joined: Jan. 2012
Offline
how can i force $OS to evaluate for the current node, if it is inside a channel reference? right now the parm im referencing evaluates $OS and returns the name of that op before it gets passed through the expression.
.
User Avatar
Member
319 posts
Joined:
Offline
This seemed to work for me (if I'm not mis-understanding what you mean):

ch(“../subnet1/”+${OS}+“/radx”)
User Avatar
Member
390 posts
Joined: Jan. 2012
Offline
the other way around though,

node1/parameter1 = test_$OS

node2/parameter1 = `chs(“../node1/parameter1”)`

currently node2 returns test_node1, but i would like it to retrun test_node2
.
User Avatar
Member
319 posts
Joined:
Offline
I see, I only got as far as getting it to reproduce the original expression using something like:-

`evals('chsraw(“../attribcreate1/string1”)')`

i.e. the above evaluates to test_$OS (the original expression on the referenced parm). Just need a way to make it expand the $OS variable again. I tried using backslashes to be able to nest backticks but it errors.

Anyone shed any light?!
  • Quick Links