Given an incident with three files, how could the name of the second file be referenced?
Given an incident with three files, how could the name of the second file be referenced?
In common programming conventions, indexes typically start at 0. To reference the second file in a list, we use index 1. The correct notation follows the pattern where 'File' is the array, [1] is the index pointing to the second file, and .Name accesses the name property of that file. Thus, the correct answer is ${File.[1].Name}.
The answer is C ${File.[1].Name}
I just tested, File.[1].Name it is. Therefore, C (And the index is starting from 0)
Why can't answers be changed? The answer is C
C is Correct
D is correct, index starts from 0.
D is incorrect because it is not the correct JSON path
A is the correct answer
Could you please confirm it? Index starts with 0 right so second file means index 1.