Help needed on Profile Lookup task

Help needed on Profile Lookup task


Hi peeps, im struck on this task. I’ve written out the code, but does not seem to work under execution. Can anyone see the mistake in there for me please? I’ve been stuck on it for some time…


The problem is in the else statements. You will not check all the possibility, you check the first element( of the array or of the object if the name will match) and if it will not match your function return something bringing you out of the loop^^