# getBooleanChildOperation

#### getBooleanChildOperation

Get the current boolean operation type applied to a specific child of a boolean operator.

#### Signature

```
getBooleanChildOperation(
  booleanNameOrId: string,
  childNameOrId: string
): Promise<string | null>
```

#### Parameters

<table><thead><tr><th width="193.125">Parameter</th><th width="118.6796875">Type</th><th width="110.26171875">Required</th><th>Description</th></tr></thead><tbody><tr><td><code>booleanNameOrId</code></td><td><code>string</code></td><td>Yes</td><td>Name or ID of the parent boolean operator</td></tr><tr><td><code>childNameOrId</code></td><td><code>string</code></td><td>Yes</td><td>Name or ID of the child object</td></tr></tbody></table>

#### Returns

`Promise<string | null>` - the current operation as an uppercase string, or `null` if the child is not found in the operator.

| Return value     | Meaning                                  |
| ---------------- | ---------------------------------------- |
| `'UNION'`        | Objects are combined into one            |
| `'INTERSECTION'` | Only the overlapping volume remains      |
| `'A_MINUS_B'`    | Child is subtracted from the base object |
| `null`           | Child not found in this boolean operator |

#### **Note:** <br>

* the return values are uppercase internal identifiers. To set an operation, use the PascalCase values accepted by `setBooleanChildOperation`: `'Union'`, `'Intersection'`, `'Subtract'`.

#### Examples

```js
const op = await api.getBooleanChildOperation("Boolean 1", "Sphere");
console.log("Current operation:", op); // e.g., "A_MINUS_B"

// Returns null if child is not part of this boolean operator
const op = await api.getBooleanChildOperation("Boolean 1", "NonExistent");
console.log(op); // null
```


---

# Agent Instructions: 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://help.vectary.com/api/model-api/api-reference/getbooleanchildoperation.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.
