Logic works also with checkboxes