Can someone please tell me the [IF]/[ELSE] statement for the product add to basket button, and the product out off stock notify button for a custom product detail page layout.

Thanks