What's the command to set variable back to Switch

Post Reply
nicktazo
Newbie
Posts: 13
Joined: Sat Apr 13, 2013 5:31 pm

What's the command to set variable back to Switch

Post by nicktazo »

Dears



i got the variable by function getVariableAsNumber. after some calculation, i need to write the new variable back to switch Metadata.



could you tell me what's the command to do it ?



Thanks much



Nick
dkelly
TOP CONTRIBUTOR
Posts: 628
Joined: Mon Nov 29, 2010 8:45 pm
Location: Alpharetta GA USA
Contact:

What's the command to set variable back to Switch

Post by dkelly »

job.setPrivateData("key", value);
freddyp
Advanced member
Posts: 413
Joined: Thu Feb 09, 2012 3:53 pm

What's the command to set variable back to Switch

Post by freddyp »

Ni hao Nick,



I would like to draw your attention to a new feature in update 4 to perform calculations on variables. It allows to do calculations without having to use script expressions. Check it out on the video of what's new in update 4. It may be an easier approach for what you want to do.



Freddy
nicktazo
Newbie
Posts: 13
Joined: Sat Apr 13, 2013 5:31 pm

What's the command to set variable back to Switch

Post by nicktazo »

freddyp wrote: Ni hao Nick,



I would like to draw your attention to a new feature in update 4 to perform calculations on variables. It allows to do calculations without having to use script expressions. Check it out on the video of what's new in update 4. It may be an easier approach for what you want to do.



Freddy


Thanks much Freddy



Good News.



Nick
Post Reply