dcsex.setters

A common library of setter functions which can be used in the set function for class properties.

Contents

  1. Functions
    1. t.setBoolean(, _, new)
    2. t.setNumber(, _, new, old)
    3. t.setString(, _, new, old)
    4. _t.setValFromTable(tbl, _, _, new, old)

Functions

t.setBoolean(, _, new)

Parameters

_
_
new

t.setNumber(, _, new, old)

Parameters

_
_
new
old

t.setString(, _, new, old)

Parameters

_
_
new
old

_t.setValFromTable(tbl, _, _, new, old)

If new doesn’t exist return old otherwise return new.

Parameters

tbl
_
_
new
old