> For the complete documentation index, see [llms.txt](https://gitbook.semantify.it/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.semantify.it/domainspecifications/ds-v2/grammar/rules/booleanrule.md).

# Grammar Documentation for node type "BooleanRule"

BooleanRules are rules that apply on values which have the data type "Boolean" from Schema.org.

The specific rule type is given by the value in the "$rule" property. The properties which rules can have are explained in the Meta\_Rules.md document. Note that the "subject" property can be omitted, if the "$path" object has an empty JSON Pointer as value (see Meta\_Rules.md for details).

However, the data type for the "parameter" depends on the "$rule" value (e.g. arguments for the rule function), and is explained in the following.

![Syntax diagram](/files/-MXl7s4UDKOnVfHhU-AG)

## equals

The "equals" rule checks if a given boolean value (the validated value) matches a given boolean.

```javascript
{
  "$type": "BooleanRule",
  "$rule": "equals",
  "subject": {
      "$path": "/isAccessibleForFree"
  },
  "parameter": true
}
```

The parameter is a boolean which serves as the second argument for the rule function. The validated subject must be the same as the given parameter.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gitbook.semantify.it/domainspecifications/ds-v2/grammar/rules/booleanrule.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
