How to declare and initialize 2d array

how to declare and initialize 2d array

Hello @Gaurav07

From the variable panel, type the variable name, and select the type as Array(T). Then you’ll get another small window to select the type of the array. In there, again select Array(T). Then another similar window will pop up. In there, select String. This will create a 2D string array.

How you are to initialize a 2D array is as follows

Sample
{({"123","ABC"}), ({"456", "CDE"})}

Hope this helps.