条件内容
创建条件内容
示例
在 Markdown 中的表示
## 示例
{% if visitor.claims.unsigned.example_attribute_A %}
此块仅对具有属性 A 的用户**可见**。
<a href="https://gitbook.com/docs/creating-content/blocks/conditional-content?visitor.example_attribute_A=false" class="button primary">查看无属性 A</a>
{% endif %}
{% if !visitor.claims.unsigned.example_attribute_A %}
此块仅对**不具有**属性 A 的用户可见。
<a href="https://gitbook.com/docs/creating-content/blocks/conditional-content?visitor.example_attribute_A=true" class="button primary">查看具有属性 A</a>
{% endif %}最后更新于
这有帮助吗?