> For the complete documentation index, see [llms.txt](https://docs.cwicly.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cwicly.com/interactions/visibility-conditions/blocks.md).

# Blocks

Visibility Conditions on blocks in the post/page editor allow you to display or not display certain blocks according to set conditions.

Cwicly allows you to hide or show blocks for logged in users or guests.

## Show/Hide block for logged in users

<figure><img src="https://lh3.googleusercontent.com/RlyD46sd8MDS9lViewqXr4aZ8LZsYqfNn-gWO7W4yg3R8cjqHi_s6I3NzwzNroFQPrDj5FVQvNKOMT1Ub1PxE6LK8LGykDvMad8ZzDxJNadntwxEHiG1NbykLwBbo0SRbL7cAMVwUdQydvWtOYHfcz1uTlf4rsyqXZ5MRVLTZZ6TAS9k2v88fr9VfHrRnw" alt=""><figcaption></figcaption></figure>

<details>

<summary>Show/Hide</summary>

To hide a block so that it does not appear for users who are logged in:&#x20;

1. Select a block
2. Open the Block Inspector
3. Navigate to the Primary tab
4. Click Visibility Conditions icon to open modal
5. Toggle Hide block for logged in users

</details>

## Show/Hide block for guests

<figure><img src="https://lh5.googleusercontent.com/dCef7qKb9ylEZX0yd3cxAZquxZscs1u5508pw3CS6kqEOPmUSKQAOwFN1em-q4scNTzN5El7PknSJZSO8xjEGwjfTNn508xk3qtTPIIcd4vlhV6QgUKiNPndwZMF57-XZes_IOU8eqaH0UP41WQR225lCPi-mu1t3sI6-mANScNWPZSXVdOPSZHfcoS_fA" alt=""><figcaption></figcaption></figure>

<details>

<summary>Show/Hide</summary>

To hide a block so that it does not appear for users who are not logged in:

1. Select a block
2. Open the Block Inspector
3. Navigate to the Primary tab
4. Click Visibility Conditions icon to open modal
5. Toggle Hide block for guests

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.cwicly.com/interactions/visibility-conditions/blocks.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
