By default if I specify an index for a multi-value token that is outside the range, it picks the last populated index instead. Is there a simple way to have it return nothing instead?
Question
Question
Workflow - Is there a simple way to get a multi token index value only if it exists?
Replies
I believe you can just use the value count function in the token editor for your multi-value token, as mentioned here. Just need to use that value in a conditional statement.
Value count could return a number, for example if I had 5 values, it would return 5. I am looking to return the value at the index specified, but if the index is out of range to return blank.
Right, so if value count is greater than the index, then return the value at the index. Else, return blank.
I don't think this condition can be done in the token editor. How do you add conditions like this?
You would use the conditional decision activity, not the token editor.
Maybe this is under the assumption that I have a for each in the workflow and it is iterating through the values. There is no for each. The indexes are being referenced based on the row and column they belong in when populating a PDF.
There is no option inside a conditional to replace indexes of a multi-value token with a blank that would return as blank when referenced that I know of.