Hi TrianguloY and Jappie Toutenhoofd
Hi TrianguloY and Jappie Toutenhoofd
Need some help with scripting
How can I use a parameter sent via Run a script + value ?
Ex : Run a script plus Agenda
Missing how to set the var with this content for my last script line
Here I want to send Agenda and so to set my Agenda variable to 1
Setting all variables to 0 before
LL.getVariables().edit().setFloat(“ToolsProgs”,”0″).commit();
LL.getVariables().edit().setFloat(“MainHome”,”0″).commit();
LL.getVariables().edit().setFloat(“Meteo”,”0″).commit();
LL.getVariables().edit().setFloat(“Notes”,”0″).commit();
LL.getVariables().edit().setFloat(“Agenda”,”0″).commit();
/* here the variable to be set to 1
LL.getVariables().edit().setFloat(Var,”1″).commit();
]]>
< ![CDATA[
What you wrote on the extra data box in the run a script picker is available (as string) from LL.getEvent().getData();
Also, I highly recommend you to chain multiple variable edits. Committing one by one is highly inefficiency.
LL.getVariables().edit()
.setX(“name”,value)
.setX(“anothername”,anothervalue)
//etc etc
.commit();
]]>
< ![CDATA[
TrianguloY ah thx
So Var= LL.getEvent().getData();
And then all the variables set to zero on 1 instruction
And then my last instruction
Fine ?
]]>
< ![CDATA[
Fan-Tas-Tic !!!
You are the man .
]]>