Copy link to clipboard
Copied
Why isn't it working, I'm doing it right the way that is guided in helpx.adobe.com
Have you actually tried to address a specific entry with [0] or such? Otherwise this coudl simply be a formatting error in the data. anyway, without better info on the actual structure of your data and how it's used and generated nobody can tell you much. Just throwing out such generic questions isn't that useful.
Mylenium
Copy link to clipboard
Copied
Have you actually tried to address a specific entry with [0] or such? Otherwise this coudl simply be a formatting error in the data. anyway, without better info on the actual structure of your data and how it's used and generated nobody can tell you much. Just throwing out such generic questions isn't that useful.
Mylenium
Copy link to clipboard
Copied
I also thought the error would be in the expression, though everything was written correctly. But the problem was in the data, where some object property was 2, but in the code, there was a switch for only 0 and 1 cases, but not for 2's case. But logically the error should appear at the line where the switch case was written, not the line, where the data is assigned to a variable and everything is ok, the problem actually occurs later. Shouldn't it?
Copy link to clipboard
Copied
The first line looks good to me at first sight. Do you happen to have the old Legacy ExtendScript engine enabled for expressions in the Ae preferences? That engine definitly cannot handle the "let" statement in the second line.
Copy link to clipboard
Copied
I also thought the error would be in the expression, though everything was written correctly. But the problem was in the data, where some object property was 2, but in the code, there was a switch for only 0 and 1 cases, but not for 2 case. But logically the error should appear at the line where the switch case was written, not the line, where the data is assigned to a variable and everything is ok, the problem actually occurs later. Shouldn't it?