How To Write If And When