Function: offon

CALL:

val = offon(val)

DESCRIPTION:

Replace 0 with 'off' and 1 with 'on'

INPUT:

val any
0,1 or character string

OUTPUT:

val any
string, possible values: 'off' or 'on'