Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
how to create something like if a variable has a value then invoke action by using javascript? using key event method. when u press "F" key then a variable "google" will be created with value"1" now i wanted that if "google" has value "1" then an action should be invoked. how to do this all by using javascript any help would be appreciated.. |
||||
|
You can check for the content of a variable using ccbGetCopperCubeVariable(). You can then run your action using ccbInvokeAction(). This requires an actionid which is set into behaviors by CopperCube at runtime, so this means you can only run this from a behavior (which also only makes sense). |
|