HTMX: compare request value¶
Available since: 3.1.3
Compares a value from the current HTMX request (e.g. target, trigger or current URL) against an expected value.
Fields¶
HTMX request value-
The value from the current HTMX request that should be compared. The boolean values evaluate to "1" or "0".
When using the "Defined by token" option, make sure there is a token with this name: eca_htmx_header_value Expected value-
The value to compare the selected HTMX request value against. For boolean values use "1" or "0".
This field supports tokens. Comparison operator-
The available comparison operators like equals or less than.
When using the "Defined by token" option, make sure there is a token with this name: eca_htmx_header_operator Comparison type-
The type of the comparison.
When using the "Defined by token" option, make sure there is a token with this name: eca_htmx_header_type Case sensitive comparison-
Compare the values based on case sensitivity.
Negate the condition-
Negates the condition. Makes TRUE to FALSE and vice versa.