> ## Documentation Index
> Fetch the complete documentation index at: https://superofficeas-bugfix-ty-screen-designer-paradox.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# FHBitSet

> Used to represent and manipulate a 32 bit bitset.

Used to represent and manipulate a 32 bit bitset.

## Constructors

### FHBitSet()

```crmscript theme={null}
FHBitSet
```

Initializes a new instance of the FHBitSet class.

## Methods

## getBitNo(Integer)

Checks if a specified bit is set.

```crmscript theme={null}
Bool getBitNo(Integer number)
```

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - True if a specified bit is set; otherwise, false.

## set(Integer)

Initializes the bitset from an Integer.

```crmscript theme={null}
Void set(Integer value)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
FHBitSet fh;
fh.set(44);
print(fh.toLsbString());
```

## set(String)

Initializes the bitset from a String.

```crmscript theme={null}
Void set(String rep)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

## setBitNo(Integer,Bool)

Sets a specific bit.

```crmscript theme={null}
Void setBitNo(Integer number, Bool val)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
FHBitSet fh;
Bool b = true;
fh.set(0);
fh.setBitNo(15, b);
print(fh.toLsbString());
```

## toInteger()

Returns the bitset as an integer.

```crmscript theme={null}
Integer toInteger()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - The Integer representation of the bitset.

## toLsbString()

Returns an LSB (Least Significant Byte first) string representation of the bitset.

```crmscript theme={null}
String toLsbString()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The LSB string representation of the bitset.

**Example:**

```crmscript theme={null}
FHBitSet fh;
fh.set(44);
print(fh.toLsbString());
```
