Add if tag and script demo