{/* 1. Show content only for open annotations: */}<VeltIf condition="{annotation.status.id} === 'OPEN'"> <p>This annotation is currently open.</p></VeltIf>{/* 2. Display a message for annotations with more than 5 comments: */}<VeltIf condition="{annotation.comments.length} > 5"> <p>This is a popular annotation!</p></VeltIf>{/* 3. Combine multiple conditions: */}<VeltIf condition="{annotation.status.id} === 'OPEN' && {annotation.comments.length} === 0"> <p>This is a new open annotation without any comments yet.</p></VeltIf>
{/* 1. Show content only for open annotations: */}<VeltIf condition="{annotation.status.id} === 'OPEN'"> <p>This annotation is currently open.</p></VeltIf>{/* 2. Display a message for annotations with more than 5 comments: */}<VeltIf condition="{annotation.comments.length} > 5"> <p>This is a popular annotation!</p></VeltIf>{/* 3. Combine multiple conditions: */}<VeltIf condition="{annotation.status.id} === 'OPEN' && {annotation.comments.length} === 0"> <p>This is a new open annotation without any comments yet.</p></VeltIf>
<!-- 1. Show content only for open annotations: --><velt-if condition="{annotation.status.id} === 'OPEN'"> <p>This annotation is currently open.</p></velt-if><!-- 2. Display a message for annotations with more than 5 comments: --><velt-if condition="{annotation.comments.length} > 5"> <p>This is a popular annotation!</p></velt-if><!-- 3. Combine multiple conditions: --><velt-if condition="{annotation.status.id} === 'OPEN' && {annotation.comments.length} === 0"> <p>This is a new open annotation without any comments yet.</p></velt-if>