> ## Documentation Index
> Fetch the complete documentation index at: https://docs.melonly.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Melonly Conditions

> Learn how Melonly condition blocks check roles, ranks, permissions and session status and return true or false.

***

Melonly Conditions check a user's Melonly roles, ranks or permissions, or the current session status, and return true or false.\
Use them so actions only run when the Melonly requirements are met.

<Frame caption="Melonly blocks in the block library">
  <img className="block" src="https://mintcdn.com/melonly/Icf-MhWcCce5bv5F/images/Dashboard/Workflows/lib-melonly-conditions.png?fit=max&auto=format&n=Icf-MhWcCce5bv5F&q=85&s=6fa2adeee574ca35268212a9ab461d7e" alt="The block library searched for Melonly, showing Create Log, Add Melonly Role and Remove Melonly Role" style={{ borderRadius: '0.75rem' }} width="1918" height="989" data-path="images/Dashboard/Workflows/lib-melonly-conditions.png" />
</Frame>

***

## Blocks

<Tabs>
  <Tab title="Does User Have Melonly Role">
    ## Does User Have Melonly Role

    The Does User Have Melonly Role block checks whether or not a user has a specific Melonly role.

    ### What Does It Do?

    This block evaluates the selected user and role, returning a boolean value based on whether the user has that role.

    <Card title="">
      **Input**

      * **User**: The user to check.
      * **Role**: The Melonly role to verify.

      **Output**

      * **Boolean**: True if the user has the role, false if not.
    </Card>
  </Tab>

  <Tab title="Does User Have Rank">
    ## Does User Have Rank

    The Does User Have Rank block checks whether or not a user has a specific rank.

    ### What Does It Do?

    This block evaluates the selected user and rank, returning a boolean value based on whether the user has that rank.

    <Card title="">
      **Input**

      * **User**: The user to check.
      * **Rank**: The rank to verify.

      **Output**

      * **Boolean**: True if the user has the rank, false if not.
    </Card>
  </Tab>

  <Tab title="Has Melonly Permission">
    ## Has Melonly Permission

    The Has Melonly Permission block checks whether or not a user has a specific Melonly permission.

    ### What Does It Do?

    This block evaluates the selected user and permission, returning a boolean value based on whether the user has that permission.

    <Card title="">
      **Input**

      * **User**: The user to check.
      * **Permission**: The permission to verify.

      **Output**

      * **Boolean**: True if the user has the permission, false if not.
    </Card>
  </Tab>

  <Tab title="Session Status">
    ## Session Status

    The Session Status block checks whether or not the server matches a given session status.

    ### What Does It Do?

    This block evaluates the current server session and returns a boolean value based on whether it matches the specified status.

    <Card title="">
      **Input**

      * **Status**: The session status to check.

      **Output**

      * **Boolean**: True if the session matches, false if not.
    </Card>
  </Tab>
</Tabs>

***

<Card title="Need help?" icon="headset" href="https://melonly.xyz/discord">
  Still have questions? Join our Discord server for support from the Melonly Team.
</Card>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.