How can I handle these array?

For developers using the Construct 2 Javascript SDK

Post » Tue Mar 28, 2017 11:07 pm

Hello
How can I create or read this type of arrays from the construct event editor? Some plugin? as?
sorry if repeated.

var array1 = {
user : examplevalue,
contra : examplevalue,
nmc : examplevalue,
email : examplevalue
};

var array2[userid] = {
user : examplevalue,
contra : examplevalue,
nmc : examplevalue,
email : examplevalue
};

And extract example
var exitvariable = array1.user ;
var exitvariable2 = array2[userid].user ;

Everything from construct 2 events. Thanks.
B
37
S
19
G
17
Posts: 22
Reputation: 11,473

Post » Fri Mar 31, 2017 8:03 am

@jackblord

Json plugin
B
110
S
28
G
280
Posts: 4,488
Reputation: 156,568


Return to Javascript SDK

Who is online

Users browsing this forum: No registered users and 0 guests