iswritable Synchronous
Check whether a table is currently writable. It is the inverse of isreadonly for the same table.
Luau
iswritable(value: Table) -> booleanParameters
| Parameter | Type | Description |
|---|---|---|
value | Table | Table to inspect. |
Returns
booleantrue when writes are allowed.
Example
Luau
local settings = { volume = 5 }
print(iswritable(settings)) -- true
makereadonly(settings)
print(iswritable(settings)) -- false