FindFirstAncestor will go through the provided instance's ancestors until it finds one that meets your terms or it reaches a nil parent.
Arguments
| Argument | Type | Description |
|---|---|---|
| Object | Instance | The instance whose ancestors you are going through. |
| Terms | Table | Notion – The all-in-one workspace for your notes, tasks, wikis, and databases. |
Returns
| Name | Type | Description |
|---|---|---|
| Object | Instance | The ancestor which meets your terms, should one exist. |
If there is no ancestor which meets your terms, false will be returned.