Possible to disable public variable based on value of another public variable?

Any updates of this? Hard to google that thread othervise I was thinking that this is necessary thing and I’m dumb and see none…