|
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.
|