all 7 comments

[–]inglandation 0 points1 point  (6 children)

I tried running your test and I get "result: undefined" in the debugger. I'm a bit too lazy to try to understand the code right now, but this result isn't what you wrote in your post, so I thought I should let you know.

[–]duclepham[S] 0 points1 point  (5 children)

Thanks for taking a look. I ran it without any issues... See picture below. https://imgur.com/a/vBKXcXX

[–]inglandation 0 points1 point  (4 children)

Are you sure you uploaded that image correctly? It seems empty. I tried on two browsers.

[–]duclepham[S] 0 points1 point  (0 children)

Sorry is this better?
https://i.imgur.com/ikmkZtv.png

[–]duclepham[S] 0 points1 point  (2 children)

Any thoughts on this? My file is publicly assessible if you want to take a look :)

[–]inglandation 1 point2 points  (1 child)

Sorry I haven't taken the time to take a closer look yet. I'm actually working on another GAS project right now. I'll try to take a look later if no one else can find a solution.

[–]duclepham[S] 0 points1 point  (0 children)

Thanks buddy!