I have a URL in the format http://blah.com/images/{index] where the maximum index value will be the total number of records minus 1. So for three images the indexes would be 0, 1, 2
What is the best way to take the attribute imagecount and loop to the URL for the correct number of times starting at zero???
Just getting a bit confused now....
Regards
Best answer by ebygomm
If you know the image count before the call, you can clone to that number (3), this will then assign a copy number (0,1,2) to each feature and you can use that attribute to formulate the url and then send three requests that way rather than looping.
I'd only use looping where a value from the previous call was required for the next call
If you know the image count before the call, you can clone to that number (3), this will then assign a copy number (0,1,2) to each feature and you can use that attribute to formulate the url and then send three requests that way rather than looping.
I'd only use looping where a value from the previous call was required for the next call
If you know the image count before the call, you can clone to that number (3), this will then assign a copy number (0,1,2) to each feature and you can use that attribute to formulate the url and then send three requests that way rather than looping.
I'd only use looping where a value from the previous call was required for the next call
Thanks very much, that worked fine....all this time with FME and still learning!!!
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.