# Variable Setter

The Variable Setter action can very easily and simply set one or more variables, or the properties of objects to values. For example, if you define a global variable in Lucid, you may select that variable in the Variable Setter and set to a value. Also, Lucid has the ability to analyse your code as it runs, and find certain properties which are available to set. Consider this example. If we have a Custom Code object, which adds the property "numberofAddresses" to the event object: `event.numberOfAddresses = 32;` Then on running that code in Lucid, Lucid will analyse the event object, and discover this property within. Then, in your Variable Setter action variable popup menu, you will find that this property is available to select. You may add as many properties as you like to the event object (or any other JavaScript object), and everywhere the event is passed, those properties are available for use. You will find that wherever possible, Lucid's actions pass the event object as a parameter to the next action. This means that any data you like may be passed from action to action. You may set a property to any value or object you wish. It can be a number like the example above, a string (text) like "hello world!", or it can be a whole new object you've created yourself, or one provided by a library like jQuery.