AutoAdd node if last value is X
-
Is it possible to autoadd a node if i have a Generic template gathering a value i want to decide where the node should be put?
Ex i have template that check for program version "Templates->Generic->AppVersion"
If AppVersion >=1.0 add to node to "Templates->Generiv_v1"
If AppVersion >=2.0 add to node to "Templates->Generiv_v2" -
It is possible to check DCI values in template autoapply scripts.
In the generic template, create a DCI that collects the application version.
In the autoapply script of the version-specific template use something like this. (Not tested, may contain errors)sub main() { ver = GetDCIValue($node, FindDCIByName($node, "AppVersion(theApp)")); // nxsl finally uses short-circuit evaluation :-) return (ver != NULL && $node->name ~= "node-name-regexp" && real(ver) > 1.2 && real(ver) < 2.0); } -
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login