I'm trying to build a remote tic-tac-toe game with my grandson. I'm storing the 'board' in a global array 'board' as a 3x3 array
var b = [[9,9,9],[9,9,9],[9,9,9]]
global.set("board",b)
The board is a set of buttons and each button sends a payload like this for r0,c0 {"r":0,"c":0}
What I want to do in a change node is set global.board[0][0] to a number but if I use global.board[msg.payload.r][msg.payload.c] I get an error.
If i use global.board[0][0] it works, using a message property like global.board[msg.array.x][msg.array.y] doesnt work for me either. Maybe use a function node in this case. It will work there probably.