Confusion about programming Logic

I just tried it, works perfectly! thank you