ReferenceMetatables

iswritable

Checks whether a table can be written to.

Syntax

iswritable(target: table) -> boolean

Also available as

iswriteableis_write_able

Parameters

ParameterTypeDescription
targettableThe table to check.

Returns

TypeDescription
booleantrue 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.