As per the title.
Best wishes.
Select the If statement you wish to comment out then click the cog and select disable statement.
You can also select the line (if you have the rearrange option turned on - < > icon) and then change the disabled / enabled state straight from the margin on the right side of the page.