> From the BotGhost docs: https://botghost.com/docs/custom-commands-and-events/actions/other-actions/go-to-page
> Every page: https://botghost.com/docs/llms.txt

# Go to Page

Next, Previous and page buttons for a message, or a button back to a main menu.

Shows a [Send or Edit a Message](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message) block again on another page, or goes back to an earlier message. Put it in the actions of a button or select menu option.

![The Go to Page settings, with the five choices and Advanced marked](https://botghost.com/docs/content/assets/workspace/block-goto-message.png)

- **A** **What it does**:
  - **Next page** and **Previous page**: show this message again on the next or previous page.
  - **Go to a page**: show it on a page you pick, like page 1.
  - **Go back to a message**: show an earlier message again, like a main menu.
  - **Something else**: pick the message and the page yourself.
- **B** **Advanced**: how many pages there are (needed for the last page, unless the message has its own pages), whether **Next** on the last page goes back to page 1, how many pages a press moves, and whether to edit the message or send a new one.

## Show different text on each page

The message reads its page as `{page}`, which is `1` the first time it's sent. Use it in the text, or in an [If / Else](https://botghost.com/docs/custom-commands-and-events/conditions/comparison-condition) block before the message, to show something different on each page.
