here is ternary operator more understandable.
```
widget_checked = UI.QueryWidget(Id(:request_server_certificate), :Value)
request_server_certificate = widget_checked ? 'demand' : 'allow'
```