Skip to main content

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

ParameterDescription
BaseObjectSelf is the reference character; Target is the character to compare generation against
CompareTypeSupported compare types: Equal, NotEqual, Less, LessEqual, Greater, GreaterEqual, Range
F1Value to compare against (or minimum value for Range)
F2Maximum value for Range comparison

Examples

DescriptionBaseObjectCommandCompareType
If Target is Self's parent (1 gen up)SelfIsGenerationRankDifferenceEqual
If Target is Self's child (1 gen down)SelfIsGenerationRankDifferenceEqual
If Target is an older generationSelfIsGenerationRankDifferenceGreater
If Target is a younger generationSelfIsGenerationRankDifferenceLess