Skip to content

Condition Enums

Joprebond edited this page Sep 25, 2026 · 3 revisions

Condition Enums

Companion page to Conditions. This page documents every enum referenced by a class in com.jopre.streamlink.action.condition.

Both enums below are annotated with Gson's @SerializedName, which means the JSON value written in a config file can differ from the Java constant name. ConditionCompareMethod also defines alternate values, meaning more than one JSON string deserializes to the same constant (see below).


ConditionType

Package: com.jopre.streamlink.action.condition · Discriminator field: type (present on every Condition — see Conditions → Common Fields)

Constant JSON Value Condition Class Description
STRING_COMPARE string-compare StringCompareCondition Compare Two string values
INTEGER_NUMERIC_CONDITION integer-numeric-condition IntegerNumericCondition For Decimal Variable Types only. Check to see if the value is a specific number or in a range
DECIMAL_NUMERIC_CONDITION decimal-numeric-condition DecimalNumericCondition For Decimal Variable Types only. Check to see if the value is a specific number or in a range_
CHAT_USER_NAME chat-user-name UserNameCondition Check for a specific user name in the stream which triggered an event
USER_SUBSCRIBE user-subscribe UserSubscribeCondition Check to see if a user is subscribed to the streamer
BOOLEAN_CONDITION boolean-condition BooleanCompareCondition For Boolean Types Only. Evaluate if a variable is true or false
VARIABLE_EXISTS variable-exists VariableExistsCondition This condition will allow you to check to see if a variable is defined or not_

ConditionCompareMethod

Package: com.jopre.streamlink.action.condition · Used by: StringCompareCondition (condMethod field)

Constant Primary JSON Value Alternate JSON Value(s) Description
GREATER greater gt Is one value greater than the other
GREATER_OR_EQUAL greater-equal ge Is the value greater than or equal to another
EQUAL equal eq Are two values equal to another
LESS_OR_EQUAL less-equal le Is one value less than or equal to another
LESS less lt Is one value less than the other
EMPTY empty — TODO: description
NOT_EMPTY not-empty — TODO: description

Clone this wiki locally