user
Given a scenario, formulate a logical condition.
Scenario: You want to grant access to a certain document to people only after they have filled out a form.

assistant
if (form.isFilled && form.isCorrect) {
  grantAccess();
}