integer

Settable:
no
Arguments:
string
Return Value:
integer

Parses a string and converts it into an integer. That is,

integer('7')
is
7
This can be useful for integer variables, since get_attr and set_attr only save strings.