if statement

Why i can not use if statement in a kernel? The only cause that i can see is that can be delay a thread of block but this dosnt big problem. I read that occur divergence of a wrap if you use (if). What does mean this?

I wonder myself. I use [font=“Courier New”]if[/font] happily.

Read the Programming Guide. It is essential reading and all your questions are answered there.

And please don’t open a new thread for each trivial question. I am happy to answer questions here. But these answers cannot replace studying the documentation.

Dear tera thank you for your answers.