# Sandbox.UI.ScriptControl.GoToDiagnostic

```csharp
void GoToDiagnostic(bool previous = False)
```

Move to the next diagnostic (F8), or the previous one (Shift+F8).

### Parameters

- `previous` (`bool`), default `False`

Declared in [Sandbox.UI.ScriptControl](/api/Sandbox.UI.ScriptControl).
Assembly: `Sandbox.Engine`.
