ramdb/docs/list/README.md
Jacob Schmidt 801bc91ffb fix: Update documentation links to README.md
This commit updates internal links in the documentation to point to the correct `README.md` files within each category. This ensures that the links function as intended and improves navigation within the documentation.
2025-03-22 20:10:02 -05:00

40 lines
1.1 KiB
Markdown

# List Operations
This section contains documentation for the list operations of ArmaRAMDb that allow for working with ordered collections of items.
## Available Functions
- [listAdd](listAdd.md) - Add an item to a list
- [listDelete](listDelete.md) - Delete a list
- [listGet](listGet.md) - Get items from a list
- [listLoad](listLoad.md) - Load a list from the database
- [listRemove](listRemove.md) - Remove an item from a list
- [listSet](listSet.md) - Set an item in a list
## Example Usage
```sqf
// Add an item to a list
["myList", ["myItem"]] call ramdb_db_fnc_listAdd;
// Set an item at a specific index
["myList", 0, [myNewValue]] call ramdb_db_fnc_listSet;
// Get an item at a specific index
["myList", 0, "myFunction"] call ramdb_db_fnc_listGet;
// Load all items from a list
["myList", "myFunction"] call ramdb_db_fnc_listLoad;
// Remove an item at a specific index
["myList", 0] call ramdb_db_fnc_listRemove;
// Delete the entire list
["myList"] call ramdb_db_fnc_listDelete;
```
## Related Categories
- [Core Functions](../core/README.md)
- [Basic Data Operations](../basic/README.md)
- [Hash Operations](../hash/README.md)