C: Local Variable

Sara
Sara
  • Updated

‘Local Variable’ is a meshbot controllable that lets you update the value of an existing variable in an action:

 

 

Updating the value of a variable will affect all meshbot triggers which feature that variable.

  • You must have saved at least one variable before you can use this controllable type.
  • Click ‘Advanced Scripting’ > ‘Variables’ > ‘Add New Variable’ to create a new variable:
 
 
  • You can create and set values of the following types of variables:

      • Integer
      • String
      • Boolean
      • Color
      • Token
      • Scalable
  • See the variables help page if you want to learn more about variable types and how to use them in meshbots.
  • Click here for an example of how to update a variable in an action and use its new value to trigger a scene.
  • There is another, more detailed example of how to use variables on this page.

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.