≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Action Not Invoking
Posted by:
(you are not logged in)
Enter the missing letter in: "Internationa?"
(you are not logged in)
Text:
[quote][b]ishmaru[/b] wrote: I Am have this script that simply have an if/else check to perform a specified action. However this issue where in this script the actions specified never seem to happen, HOWEVER the print() does print to the console so I know that the line should have executed. Any Ideas what may be wrong? [code] /* <action jsname="action_ActionSwap" description="DoAction on Variable Change"> <property name="VarToCheck" type="string" default="VariableName" /> <property name="ActionA" type="action" /> <property name="ActionB" type="action" /> <property name="ActionC" type="action" /> <property name="ActionD" type="action" /> </action> */ action_ActionSwap = function() { }; // called when the action is executed action_ActionSwap.prototype.execute = function(currentNode) { var num = ccbGetCopperCubeVariable(this.VarToCheck); var divisible = function(min, max){ var n = 0; for(i = min; i <= max; i++){ if(n == 3){ n = 0; }else{ n++; } if(i == max){ if(n == 1){ ccbInvokeAction(this.ActionA); print(i+" - 1"); }else if(n == 2){ ccbInvokeAction(this.ActionB); print(i+" - 2"); }else if(n == 3){ ccbInvokeAction(this.ActionC); print(i+" - 3"); }else{ ccbInvokeAction(this.ActionD); print(i + ' - 0') } } } }; divisible(1,num); } [/code][/quote]
Possible Codes
Feature
Code
Link
[url] www.example.com [/url]
Bold
[b]bold text[/b]
Image
[img]http://www.example.com/image.jpg[/img]
Quote
[quote]quoted text[/quote]
Code
[code]source code[/code]
Emoticons
Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact