Hello I found several errors in the javascript.
Yete 4.2.0
var a = '700'; var b = '702';
var c = [a, b];
Engine.print_r(c);
//log
'c' = '[object Array]' (JsArray)
'freeze' = '[function freeze()]' (ExpFunction)
'isFrozen' = '[function isFrozen()]' (ExpFunction)
'toString' = '[function toString()]' (ExpFunction)
'hasOwnProperty' = '[function hasOwnProperty()]' (ExpFunction)
'push' = '[function push()]' (ExpFunction)
'pop' = '[function pop()]' (ExpFunction)
'concat' = '[function concat()]' (ExpFunction)
'join' = '[function join()]' (ExpFunction)
'reverse' = '[function reverse()]' (ExpFunction)
'shift' = '[function shift()]' (ExpFunction)
'unshift' = '[function unshift()]' (ExpFunction)
'slice' = '[function slice()]' (ExpFunction)
'splice' = '[function splice()]' (ExpFunction)
'sort' = '[function sort()]' (ExpFunction)
'length' = '2' (NamedString)
'0' = '' (ExpOperation)
'1' = '' (ExpOperation)
or
function test(a)
{
Engine.print_r(a);
}
test([message.caller, message.called]);
working only
var a = [];
a.push(message.caller);
a.push(message.called);
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--==-=-
not working "else if(...)"
<JsCode:WARN> Evaluator error: Expecting operand in line "line" at: }
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=
not working function "join"
var a = ['a','b','c'];
a.join();
result 'a,b,c'; good!
a.join(' + ');
result 'abc' not good =(