Skip to main content

Condition_ComparePreference

Description

Counts how many preferences Self and Target share (same preference ID and same like/dislike state), then compares that count using CompareType.

Parameters

ParameterDescription
BaseObjectNot used to resolve the entity; always compares Self against Target's preference map.
CompareTypeSupported compare types: Equal, NotEqual, Greater, Less, GreaterEqual, LessEqual, InRange, OutRange.
F1The reference count of matching preferences to compare against (or the lower bound for range).
F2The upper bound value for InRange/OutRange comparisons.

Examples

DescriptionBaseObjectCommandCompareType
Check if Self and Target share 2 preferencesSelfComparePreferenceEqual
Check if they share fewer than 3 preferencesSelfComparePreferenceLess
Check if they share 2 to 5 preferencesSelfComparePreferenceInRange
Check if they share none of the sameSelfComparePreferenceEqual