# Continue()

Method in [Dialogue](https://docs.yarnspinner.dev/3.1/api/csharp/yarn/yarn.dialogue)

## Summary

Starts, or continues, execution of the current Program.

```csharp
public void Continue()
```

## Remarks

This method repeatedly executes instructions until one of the following conditions is encountered:

* The [LineHandler](https://docs.yarnspinner.dev/3.1/api/csharp/yarn/yarn.dialogue/yarn.dialogue.linehandler) or [CommandHandler](https://docs.yarnspinner.dev/3.1/api/csharp/yarn/yarn.dialogue/yarn.dialogue.commandhandler) is called. After calling either of these handlers, the Dialogue will wait until [Continue()](https://docs.yarnspinner.dev/3.1/api/csharp/yarn/yarn.dialogue/yarn.dialogue.continue) is called. Continue may be called from inside the [LineHandler](https://docs.yarnspinner.dev/3.1/api/csharp/yarn/yarn.dialogue/yarn.dialogue.linehandler) or [CommandHandler](https://docs.yarnspinner.dev/3.1/api/csharp/yarn/yarn.dialogue/yarn.dialogue.commandhandler), or may be called at any future time.
* The [OptionsHandler](https://docs.yarnspinner.dev/3.1/api/csharp/yarn/yarn.dialogue/yarn.dialogue.optionshandler) is called. When this occurs, the Dialogue is waiting for the user to specify which of the options has been selected, and [SetSelectedOption(int)](https://docs.yarnspinner.dev/3.1/api/csharp/yarn/yarn.dialogue/yarn.dialogue.setselectedoption) must be called before [Continue()](https://docs.yarnspinner.dev/3.1/api/csharp/yarn/yarn.dialogue/yarn.dialogue.continue) is called again.)
* The Program reaches its end. When this occurs, [SetNode(string)](https://docs.yarnspinner.dev/3.1/api/csharp/yarn/yarn.dialogue/yarn.dialogue.setnode) must be called before [Continue()](https://docs.yarnspinner.dev/3.1/api/csharp/yarn/yarn.dialogue/yarn.dialogue.continue) is called again.
* An error occurs while executing the Program.

This method has no effect if it is called while the [Dialogue](https://docs.yarnspinner.dev/3.1/api/csharp/yarn/yarn.dialogue) is currently in the process of executing instructions.

## See Also

* [LineHandler](https://docs.yarnspinner.dev/3.1/api/csharp/yarn/yarn.linehandler): Represents the method that is called when the Dialogue delivers a [Line](https://docs.yarnspinner.dev/3.1/api/csharp/yarn/yarn.line) .
* [OptionsHandler](https://docs.yarnspinner.dev/3.1/api/csharp/yarn/yarn.optionshandler): Represents the method that is called when the Dialogue delivers an [OptionSet](https://docs.yarnspinner.dev/3.1/api/csharp/yarn/yarn.optionset) .
* [CommandHandler](https://docs.yarnspinner.dev/3.1/api/csharp/yarn/yarn.commandhandler): Represents the method that is called when the Dialogue delivers a [Command](https://docs.yarnspinner.dev/3.1/api/csharp/yarn/yarn.command) .
* [NodeCompleteHandler](https://docs.yarnspinner.dev/3.1/api/csharp/yarn/yarn.nodecompletehandler): Represents the method that is called when the Dialogue reaches the end of a node.
* [DialogueCompleteHandler](https://docs.yarnspinner.dev/3.1/api/csharp/yarn/yarn.dialoguecompletehandler): Represents the method that is called when the dialogue has reached its end, and no more code remains to be run.
