ExcludeIf HTML function

Dear Team, I would like to implement excludeIf function in HTML forms using an observation, i am not sure on which syntax to use?

Need help