Serververwaltung > Automate Tasks and Calculate Data Using Event Triggers > What Is an Event Trigger? > Variables
  
Variables
JavaScript variables are type independent (integer, floating point, string, etc.) and can hold Java objects (sets, strings, etc.). Unlike Java, you do not have to declare the type for JavaScript variables and the type can be reset by simply assigning a different value.
* 
JavaScript variables are case-sensitive, for example, the variable myvar is different from myVar. Case sensitivity can be the cause of some trigger file bugs.
To declare a variable, use the following syntax:
var <variable name> = <value>;
for example, the variable “i” can be reassigned to the following different types:
var i = 0;
var i = 1.5;
var i = “This is a string”
var i = Packages.com.mks.api.IntegrationPointFactory.getInstance()
Many Windchill RV&S Beans return Java objects that can be stored in JavaScript variables.