I am extracting data from a PDF. I have two variables. One gives me the position of all the occurrences of the string "Business Purpose," and another gives me the position of all occurrences of "Description." I would like to have the first value in the Business Purpose" variable be subtracted from the first value in the "Description" variable. This is relatively easy in the cloud version, but I'm having difficulty determining which value in the variable to use in the Desktop version. I would also like to use a variable to determine that value. For example:
Count all values in the variable "Business Description". This would be the starting "counter." Then, each time it is read, the counter goes down until it is below 0.
Sample
BusinessPurpose[0]
BusinessPurpose[1]
etc.
In layman's terms, here is what I'm trying to do:
For each value in "Business Position"
Increase variable Counter by 1
End
For each Counter
Business Purpose[Counter]-Description[Counter]
(the rest of the process would go here, but I only need to know the syntax for the variable with the counter.)
End
I've attached an image of the arrays I have set up.
Sample Variables