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();

]]>

3 Commentsto Hi TrianguloY​ and Jappie Toutenhoofd​

  1. Anonymous says:

    < ![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();

    ]]>

  2. Anonymous says:

    < ![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 ?


    ]]>

  3. Anonymous says:

    < ![CDATA[

    Fan-Tas-Tic !!!


    You are the man .

    ]]>

Leave a Reply

Your email address will not be published. Required fields are marked *