Making a If statement. Please Help

Dear all, Im not entirley sure how to make an if statement as im new to coding.

What i want to do is -

if output 13 is High

make output 7 high

then once output 7 is high turn 13 off and then turn 7 off

i want all this in a loop and a delay between each command?

This would be extremely helpful

Kind Regards


Or closer to home, have a look here