I am trying to return multiple variable as an output from js Script in AutoamtionAnywhere. For example I have js script like this:
var days = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Monday', 'Tuesday'];
var months = ['January', 'February', 'March', 'April', 'May', 'June', 'August', 'September', 'October' , 'November', 'December'];
var d = new Date();
var week_day = days[d.getDay()+2];
var day_number = d.getDate();
var month_name = months[d.getMonth()];
var month_number = d.getMonth();
if(month_number <= 9){
month_number.toString()
month_number = "0" + month_number
};
WScript.StdOut.WriteLine(week_day, day_number, month_name, month_number);
In AAE I am also putting 4 different variables as an output (With comas and with only spaces):