Sorry my first example didn't show this, but just get used to doing it this way. Each indentation shows which loop/if statement it executes.Just tested and this works.