As I already said, you could tie the variable with a self-made STORE (This, Value) function which does your checks on Value before storing it.