Help with code pleae

Also, the 1st post of this thread has a link at the bottom titled “fantastic” which contains useful examples.