# llGetNumberOfSides

*LSL function*

```lsl
integer integer llGetNumberOfSides();
```

- Returns: `integer`
- Energy: 10

See [Face](https://wiki.secondlife.com/wiki/Category:LSL_Face) for more information about faces and the conditions that control the number of faces a prim will have.

Returns an [integer](https://wiki.secondlife.com/wiki/integer) that is the number of faces (or sides) of the prim.

```lsl title="How to use" frame="terminal"
integer result = llGetNumberOfSides();
```

## Examples

<details open>
<summary>Example 1</summary>

```lsl
default
{
    state_entry()
    {
        // Set the hovertext to indicate the number of sides
        integer numOfSides = llGetNumberOfSides();
        llSetText( "I have " + (string)numOfSides + " sides.", <1,1,1>, 1 );
    }
}
```

</details>

## See also

### Functions

- [llGetLinkNumberOfSides](/functions/llGetLinkNumberOfSides/) — Get number of faces for a linked prim

---

*Source: [LlGetNumberOfSides](https://wiki.secondlife.com/wiki/LlGetNumberOfSides) on the Second Life Wiki. Content from the Second Life Wiki article LlGetNumberOfSides (revision 1214982, 2023-10-11), CC BY-SA 3.0.*

---

From lsl.dev: https://lsl.dev/functions/llGetNumberOfSides/
