Hi TrianguloY​

Hi TrianguloY​

Could you help me there : i’ve filled a new variable with 0/1 named Block

I want to run a. Script for quick unlock when 0

if($Block == 0){

/* OK for quick unlock*/

/* unlock if locked*/

if(LL.isLocked()){

LL.unlock();

}

}

Seems my ii is not correct, tried with $LL_Block, with ‘ ‘

Is there some ‘Read Variable’ to be done ?

]]>

16 Commentsto Hi TrianguloY​

  1. Anonymous says:

    < ![CDATA[

    TrianguloY so getString ?

    ]]>

  2. Anonymous says:

    < ![CDATA[

    I will say getFloat

    ]]>

  3. Anonymous says:

    < ![CDATA[

    TrianguloY not working


    var brulock = LL.getFloat($Block);


    alert(brulock);


    if(brulock == 0){


    /* unlock if locked*/


    if(LL.isLocked()){


    LL.unlock();


    }


    }

    ]]>

  4. Anonymous says:

    < ![CDATA[

    Please, read the api, don’t guess.



    LL.getVariables().getFloat(“Block”)

    ]]>

  5. Anonymous says:

    < ![CDATA[

    TrianguloY​ I’ve not seen where it is. Please point me to the right place



    Working fine. Many thanks

    ]]>

  6. Anonymous says:

    < ![CDATA[

    I posted the link O.o

    ]]>

  7. Anonymous says:

    < ![CDATA[

    TrianguloY sorry but I’m not able to see this detail on the link.


    Is it because I’m using my smartphone ?



    I have another question : how can I set a value for the same variable by script ?


    LL.setVariable().setFloat(“Block”) = 1 ;

    ]]>

  8. Anonymous says:

    < ![CDATA[

    Found that on the link


    LL.getVariables().edit().setFloat(name, value).commit();

    ]]>

  9. Anonymous says:

    < ![CDATA[

    So I’ll try

    ]]>

  10. Anonymous says:

    < ![CDATA[

    LL.getVariables().edit().setFloat(“Block”, 1).commit();

    ]]>

  11. Anonymous says:

    < ![CDATA[

    You need to understand how the api works. And I can see it from the browser correctly.


    Click an object to see the functions of that object. You can see the parameters required (between the parenthesis) what it returns (at the left) and a brief description, a bigger one at the bottom.





    Answering your question:


    LL.getVariables().edit()


    .setFloat(“Block”, 1)


    .commit();

    ]]>

  12. Anonymous says:

    < ![CDATA[

    TrianguloY yes it was my instruction too because an example was there for edit


    But no example was for getting the value.


    Thank you for your patience with me 😊

    ]]>

  13. Anonymous says:

    < ![CDATA[

    Ah! Missed your replies, sorry 😛

    ]]>

  14. Anonymous says:

    < ![CDATA[

    TrianguloY no prob


    It’s great to have a teacher like you


    Could you send me a screenshot with the get thing ? I can’t see how you found the first instruction

    ]]>

  15. Anonymous says:

    < ![CDATA[

    On the link I wrote!


    LL object, there you have the getVariables function.


    At the left it says VariableSet, that’s what it returns. Click it, you have the edit function that returns a VariableEditor, click it and check the example

    ]]>

Leave a Reply

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