---
tags:
    - "Save"
    - "Load"
    - "Slot"
---

# Has Saved Game

[Save & Load](index.md) / **Has Saved Game**

## Description

Returns true if there is a saved game at the specified profile slot

## Code

```cs
using System;
using UnityEngine;
using VisualScript.Icons;

namespace VisualScript.Runtime
{
    [Title("Has Saved Game")]
    [Image(typeof(IconDiskSolid), ColorTheme.Type.Lime, typeof(BadgeHash))]
    
    [Description("Returns true if there is a saved game at the specified profile slot")]
    [Category("Save & Load/Has Saved Game")]
    
    [Keywords("Save", "Load", "Slot")]
    
    [Serializable]
    public class ConditionCoreHasSaveInProfile : Condition
    {
        [SerializeField] private GetInteger m_Profile = new GetInteger();

        protected override string GetTitle(GameObject source) => $"Has Save at {this.m_Profile}";

        protected override bool Run(Args args)
        {
            int profile = this.m_Profile.GetInt(args);
            return SaveLoadManager.HasProfileSaved(profile);
        }
    }
}
```

