This is because the check is incorrect.
var->val->value_bool() returns the old value, var->save_result.... returns the value to be checked in check()
This is because the check is incorrect.
var->val- >value_ bool() returns the old value, var->save_ result. ... returns the value to be checked in check()