I am currently stuck on a problem:
An array comes in and there are 2 values in it. However, via business requirements, an can have up to 4 values. So for example:
Array 1: [“1A”,“2A”]
But since the arrays can be dynamic, they can hold a maximum of 4 values so Array 2 may look something like: [“1A”,“2A”,“3A”].
What is for certain is that there is always going to be 1 value. The problem I am having right is having to loop through it. I would like to go something like this:
If there is a value after the 1st value, store it in a variable. Then it goes on (if there is a value after the 2nd value, store it in a variable). If let’s say there is no value after the 1st one, then mark all those variables as blanks.
I am just a bit lost on how to go about it. I tried it with a datable, and it did not really work out because I cannot set the number of rows to it if I built it. I am trying not to use Excel for this too. Please let me know of any advice, thank you!