# IsFalse

> Return true when the condition is false. Otherwise return false.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Assertions](/engine/6000.0/script-reference/unityengine/assertions.md)
* **Assembly:** UnityEngine.CoreModule

## IsFalse(bool)

Return true when the condition is false. Otherwise return false.

```csharp
[Conditional("UNITY_ASSERTIONS")]
public static void IsFalse(bool condition)
```

### Parameters

**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): true or false.

### Examples

```csharp
using UnityEngine;
using UnityEngine.Assertions;

public class AssertionExampleClass : MonoBehaviour
{
    GameObject go;

    void Update()
    {
        // Make sure the Game Object is never in active state
        Assert.IsFalse(go.activeSelf);
    }
}
```

## IsFalse(bool, string)

Return true when the condition is false. Otherwise return false.

```csharp
[Conditional("UNITY_ASSERTIONS")]
public static void IsFalse(bool condition, string message)
```

### Parameters

**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): true or false.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The string used to describe the result of the Assert.

### Examples

```csharp
using UnityEngine;
using UnityEngine.Assertions;

public class AssertionExampleClass : MonoBehaviour
{
    GameObject go;

    void Update()
    {
        // Make sure the Game Object is never in active state
        Assert.IsFalse(go.activeSelf);
    }
}
```
