iswritable
Checks whether a table can be written to.
Syntax
iswritable(target: table) -> boolean
Also available as
iswriteableis_write_able
Parameters
| Parameter | Type | Description |
|---|---|---|
target | table | The table to check. |
Returns
| Type | Description |
|---|---|
boolean | true when the table can be written to. |
Description
It always returns the opposite of isreadonly.
Example
print(iswritable({}))
print(iswritable(table.freeze({})))
These are Game executor contracts. Check build requirements and session lifetimes before using them.
