gdjs.evtsExt__TestExtensions__ValueIndicator = {};
gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1Objects1= [];
gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1Objects2= [];
gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1ValIndObjects1= [];
gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1ValIndObjects2= [];

gdjs.evtsExt__TestExtensions__ValueIndicator.conditionTrue_0 = {val:false};
gdjs.evtsExt__TestExtensions__ValueIndicator.condition0IsTrue_0 = {val:false};
gdjs.evtsExt__TestExtensions__ValueIndicator.condition1IsTrue_0 = {val:false};
gdjs.evtsExt__TestExtensions__ValueIndicator.condition2IsTrue_0 = {val:false};


gdjs.evtsExt__TestExtensions__ValueIndicator.eventsList0 = function(runtimeScene, eventsFunctionContext) {

{

gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1Objects1.createFrom(eventsFunctionContext.getObjects("a1"));

gdjs.evtsExt__TestExtensions__ValueIndicator.condition0IsTrue_0.val = false;
gdjs.evtsExt__TestExtensions__ValueIndicator.condition1IsTrue_0.val = false;
{
for(var i = 0, k = 0, l = gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1Objects1.length;i<l;++i) {
    if ( gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1Objects1[i].getVariableNumber(gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1Objects1[i].getVariables().get("BlueUnits")) <= 0 ) {
        gdjs.evtsExt__TestExtensions__ValueIndicator.condition0IsTrue_0.val = true;
        gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1Objects1[k] = gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1Objects1[i];
        ++k;
    }
}
gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1Objects1.length = k;}if ( gdjs.evtsExt__TestExtensions__ValueIndicator.condition0IsTrue_0.val ) {
{
for(var i = 0, k = 0, l = gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1Objects1.length;i<l;++i) {
    if ( gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1Objects1[i].getVariableNumber(gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1Objects1[i].getVariables().get("OrangeUnits")) >= 1 ) {
        gdjs.evtsExt__TestExtensions__ValueIndicator.condition1IsTrue_0.val = true;
        gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1Objects1[k] = gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1Objects1[i];
        ++k;
    }
}
gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1Objects1.length = k;}}
if (gdjs.evtsExt__TestExtensions__ValueIndicator.condition1IsTrue_0.val) {
/* Reuse gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1Objects1 */
gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1ValIndObjects1.createFrom(eventsFunctionContext.getObjects("a1ValInd"));
{for(var i = 0, len = gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1ValIndObjects1.length ;i < len;++i) {
    gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1ValIndObjects1[i].setString((gdjs.RuntimeObject.getVariableString(((gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1Objects1.length === 0 ) ? gdjs.VariablesContainer.badVariablesContainer : gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1Objects1[0].getVariables()).get("OrangeUnits"))));
}
}}

}


{

gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1Objects1.createFrom(eventsFunctionContext.getObjects("a1"));

gdjs.evtsExt__TestExtensions__ValueIndicator.condition0IsTrue_0.val = false;
gdjs.evtsExt__TestExtensions__ValueIndicator.condition1IsTrue_0.val = false;
{
for(var i = 0, k = 0, l = gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1Objects1.length;i<l;++i) {
    if ( gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1Objects1[i].getVariableNumber(gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1Objects1[i].getVariables().get("BlueUnits")) >= 1 ) {
        gdjs.evtsExt__TestExtensions__ValueIndicator.condition0IsTrue_0.val = true;
        gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1Objects1[k] = gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1Objects1[i];
        ++k;
    }
}
gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1Objects1.length = k;}if ( gdjs.evtsExt__TestExtensions__ValueIndicator.condition0IsTrue_0.val ) {
{
for(var i = 0, k = 0, l = gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1Objects1.length;i<l;++i) {
    if ( gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1Objects1[i].getVariableNumber(gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1Objects1[i].getVariables().get("OrangeUnits")) <= 0 ) {
        gdjs.evtsExt__TestExtensions__ValueIndicator.condition1IsTrue_0.val = true;
        gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1Objects1[k] = gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1Objects1[i];
        ++k;
    }
}
gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1Objects1.length = k;}}
if (gdjs.evtsExt__TestExtensions__ValueIndicator.condition1IsTrue_0.val) {
/* Reuse gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1Objects1 */
gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1ValIndObjects1.createFrom(eventsFunctionContext.getObjects("a1ValInd"));
{for(var i = 0, len = gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1ValIndObjects1.length ;i < len;++i) {
    gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1ValIndObjects1[i].setString((gdjs.RuntimeObject.getVariableString(((gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1Objects1.length === 0 ) ? gdjs.VariablesContainer.badVariablesContainer : gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1Objects1[0].getVariables()).get("BlueUnits"))));
}
}}

}


{

gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1Objects1.createFrom(eventsFunctionContext.getObjects("a1"));

gdjs.evtsExt__TestExtensions__ValueIndicator.condition0IsTrue_0.val = false;
gdjs.evtsExt__TestExtensions__ValueIndicator.condition1IsTrue_0.val = false;
{
for(var i = 0, k = 0, l = gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1Objects1.length;i<l;++i) {
    if ( gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1Objects1[i].getVariableNumber(gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1Objects1[i].getVariables().get("BlueUnits")) == 0 ) {
        gdjs.evtsExt__TestExtensions__ValueIndicator.condition0IsTrue_0.val = true;
        gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1Objects1[k] = gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1Objects1[i];
        ++k;
    }
}
gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1Objects1.length = k;}if ( gdjs.evtsExt__TestExtensions__ValueIndicator.condition0IsTrue_0.val ) {
{
for(var i = 0, k = 0, l = gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1Objects1.length;i<l;++i) {
    if ( gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1Objects1[i].getVariableNumber(gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1Objects1[i].getVariables().get("OrangeUnits")) == 0 ) {
        gdjs.evtsExt__TestExtensions__ValueIndicator.condition1IsTrue_0.val = true;
        gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1Objects1[k] = gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1Objects1[i];
        ++k;
    }
}
gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1Objects1.length = k;}}
if (gdjs.evtsExt__TestExtensions__ValueIndicator.condition1IsTrue_0.val) {
gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1ValIndObjects1.createFrom(eventsFunctionContext.getObjects("a1ValInd"));
{for(var i = 0, len = gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1ValIndObjects1.length ;i < len;++i) {
    gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1ValIndObjects1[i].setString("0");
}
}}

}


};

gdjs.evtsExt__TestExtensions__ValueIndicator.func = function(runtimeScene, a1, a1ValInd, parentEventsFunctionContext) {
var eventsFunctionContext = {
  _objectsMap: {
"a1": a1
, "a1ValInd": a1ValInd
},
  _objectArraysMap: {
"a1": gdjs.objectsListsToArray(a1)
, "a1ValInd": gdjs.objectsListsToArray(a1ValInd)
},
  _behaviorNamesMap: {
},
  getObjects: function(objectName) {
    return eventsFunctionContext._objectArraysMap[objectName] || [];
  },
  getObjectsLists: function(objectName) {
    return eventsFunctionContext._objectsMap[objectName] || null;
  },
  getBehaviorName: function(behaviorName) {
    return eventsFunctionContext._behaviorNamesMap[behaviorName];
  },
  createObject: function(objectName) {
    var objectsList = eventsFunctionContext._objectsMap[objectName];
    if (objectsList) {
      return parentEventsFunctionContext ?
        parentEventsFunctionContext.createObject(objectsList.firstKey()) :
        runtimeScene.createObject(objectsList.firstKey());
    }
    return null;
  },
  getArgument: function(argName) {
    return "";
  },
  getOnceTriggers: function() { return runtimeScene.getOnceTriggers(); }
};

gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1Objects1.length = 0;
gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1Objects2.length = 0;
gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1ValIndObjects1.length = 0;
gdjs.evtsExt__TestExtensions__ValueIndicator.GDa1ValIndObjects2.length = 0;

gdjs.evtsExt__TestExtensions__ValueIndicator.eventsList0(runtimeScene, eventsFunctionContext);
return;
}

