Don't understand, how delays and triggers work

Please see the sticky post which explains how to format code.