Skip to content

Comparison

Bases: _DataSetIntEnums

This enum class provides the integer values used to reference the comparisons in the game. Used in a lot of conditions like 'Accumulate Attribute' to perform logical operations on the attribute values

Examples

Source code in AoE2ScenarioParser/datasets/trigger_lists/comparison.py
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
class Comparison(_DataSetIntEnums):
    """
    This enum class provides the integer values used to reference the comparisons in the game. Used in a lot of
    conditions like 'Accumulate Attribute' to perform logical operations on the attribute values

    **Examples**



    """
    EQUAL = 0
    LESS = 1
    LARGER = 2
    LESS_OR_EQUAL = 3
    LARGER_OR_EQUAL = 4

Attributes

EQUAL = 0 class-attribute instance-attribute

Value: 0

LESS = 1 class-attribute instance-attribute

Value: 1

LARGER = 2 class-attribute instance-attribute

Value: 2

LESS_OR_EQUAL = 3 class-attribute instance-attribute

Value: 3

LARGER_OR_EQUAL = 4 class-attribute instance-attribute

Value: 4