If conditional issue

Hi,

Trying to create a simple way to add username + password to a record then move onto next screen. That works fine.

However, I would like it to check whether the username is in use before creating a new record and moving on.

The code here so far briefly displays that it is in use but adds it to record anyway. Sometimes it adds multiple entries on click if a password isn’t found in record.

What am I doing wrong?

Thanks.

@h.liew

As best I can tell, it is finding that the record already exists, but as long as there are still entries after the matching one, it is going to continue to loop through that list and the next entry won’t match, so it will then take the value from the input form and enter it even though it already rejected it once.

You’ll have to figure out how to rework it so it exits the loop after finding a match in the data.

Hope this helps!

Mike

1 Like

That makes sense. Thanks for that.