خرید بک لینک

Vote count: 0

I am making a small project in AS3 (FlashDevelop) to catch a JSON file which contains the following:

"properties" : [ 
    {
        "statement1" : true
    }, 
    {
        "statement2" : true
    }, 
    {
        "statement3" : true
    }, 
    {
        "statement4" : false
    }, 
    {
        "statement5" : true
    }, 
    {
        "statement6" : false
    }
],

Within my AS3 code I am monitoring it like this:

if (this.sessionController.currentSession.visitor.properties.statement4 == true) {
            _counterStatements=+1;
        }
        else {
            _counterStatements=-1;
        }

Is there an more easy/shorter way to do this? It seems like I am just outputting useless code now.

Many thanks in advance.

Greetings,

Bram

ps. I want to count the true/false arguments

asked 16 secs ago

برچسب: نویسنده: استخدام کار تاريخ: سه شنبه 12 مرداد 1395 ساعت: 19:09

صفحه بندی