Hi there. How do i deactivatte emasks?

lets say at the beginning i´m writing:

my.emask = ENABLE_SCAN;

and if the unit dies it should instantly stop to have ENABLE_SCAN activated.

i used

my.emask != ENABLE_SCAN; but it downt work. Sorry i´m tryin to learn lite_c.. c_script wont be helpful anymore T.T