I have created a custom Visualforce page for when a User is editing a task. I also need to create one for when a User creates a new Task. The pages are almost identical except there are some extra fields in a separate PageBlockSection that are available in the Edit page that aren't available in the New record page.
Is it possible to create only one page and Hide or Show sections depending on if it is an edit or a new page?