Skip to main content

Condition_ComparePreviousJobRank

Description

Compares the previous JobRank from graduation history. Returns false if the JobId matches a currently active career. Returns false if the JobId is not found in graduation records. If the JobId exists in graduation records, compares the rank with F1 and returns the result.

Parameters

ParameterDescription
BaseObjectCharacter whose graduation history is checked
CompareTypeEqual, NotEqual, Greater, Less, GreaterOrEqual, LessOrEqual, InRange, OutRange
S1CareerDtId (CompanyId) of the previous job to look up
S2JobId of the previous job to look up
F1JobRank value to compare against
F2Maximum JobRank for range comparisons (InRange, OutRange only)

Examples

DescriptionBaseObjectCommandCompareType
Check if recorded rank at Dowon Elementary School is 5 or higherSelfComparePreviousJobRankGreaterOrEqual
Check if recorded rank at Dowon Middle School is less than 3SelfComparePreviousJobRankLess
Check if recorded rank at Blissbay High School is exactly 1SelfComparePreviousJobRankEqual
Check if recorded rank at Blissbay High School is between 2 and 4SelfComparePreviousJobRankInRange