Interested in programming since an early age; decades as a hobbiest; years as a teacher and tutor. These days working a lot with JavaScript and Python, but I try to explore everything.
I just tried that and did a little more testing; it seems that when I load the next json file as an object it ends up checking both of the two seperate files at once. Do you have any ideas as to how to fix that?
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I think what you need is a boolean flag. It would look something like this:
and then after the loop you put a conditional:
That conditional would replace the part inside the loop that starts with
I just tried that and did a little more testing; it seems that when I load the next json file as an object it ends up checking both of the two seperate files at once. Do you have any ideas as to how to fix that?