Condition_IsGenerationRankDifference
Description
Checks the generation rank difference between Self and Target in the family tree. Calculates the generational gap by traversing the blood relative path. Each Parent step adds +1 (going up) and each Child step adds -1 (going down). Returns false if no blood-relative path exists between Self and Target.
Note
Positive value means Target is an ancestor; negative means Target is a descendant; zero means same generation. Only considers blood relatives (EB1FamilyTreeQueryType::BloodRelative).
Parameters
| Parameter | Description |
|---|---|
| BaseObject | Self is the reference character; Target is the character to compare generation against |
| CompareType | Supported compare types: Equal, NotEqual, Less, LessEqual, Greater, GreaterEqual, Range |
| F1 | Value to compare against (or minimum value for Range) |
| F2 | Maximum value for Range comparison |
Examples
| Description | BaseObject | Command | CompareType |
|---|---|---|---|
| If Target is Self's parent (1 gen up) | Self | IsGenerationRankDifference | Equal |
| If Target is Self's child (1 gen down) | Self | IsGenerationRankDifference | Equal |
| If Target is an older generation | Self | IsGenerationRankDifference | Greater |
| If Target is a younger generation | Self | IsGenerationRankDifference | Less |