Page 1 of 1

for loop the Node command script

PostPosted: Mon Mar 14, 2022 4:55 am
by aferors
Hey there,

I need to send a lot of commands to a lot of nodes, and further to that I need to be able to scale the amount of nodes that I'm controlling

In other words a for loop with an argument of when to stop the loop, easy.
but

the "node1.connect" wont interact/resolve with the arguments of the for loop.

this doesn't work:

for i = 101 to 140{
nodei.connect
}


from reading the manual there is the wdnodecommand line, (maybe a left over from old WD)

This also doesn't work:

for i = 101 to 140{
wdnodecommand(i,"connect")
}


Has anyone any ideas on how they could get a for loop for node commands to work.

Cheers

Re: for loop the Node command script

PostPosted: Mon Mar 14, 2022 1:15 pm
by Daniel Kaminski
Is this what you are trying to do?

See attached Project.

Daniel