How angularjs checkbox sets unchecked status

The checkbox of

angular has a tag of ng-checked. You can set this checkbox to automatically change to the state of checked under a certain parameter, such as this:

<input type="checkbox" ng-checked="textCode=="test"">

but what I want to achieve now is that when textCode="test", the checkbox can automatically become the state of unchecked.
I don"t really want to use js to control this input. I don"t know if angular has such a tag that can be written directly in this input to achieve this effect, huh?

Mar.03,2021

try this

ng-checked = "if(textCode == 'test'){checked = false;}"
Menu