Tamper: Get number of words¶
Plugin ID: eca_tamper_condition:word_count
Available since: 1.0.0
Get the number of words in a string
Fields¶
Comparison operator— config key:operator-
The available comparison operators like equals or less than. To check for an empty value, use equals and leave the second value blank; tick Negate the condition for the opposite. An unresolved token keeps its literal text and is never empty, so use the Token: exists condition when a token may be missing entirely.
When using the "Defined by token" option, make sure there is a token with this name: eca_tamper_condition:word_count_operatorType:
select· Required: no · Default:equalAllowed values:
equal,beginswith,endswith,contains,greaterthan,lessthan,atmost,atleast,_eca_token,'' Comparison type— config key:type-
The type of the comparison.
When using the "Defined by token" option, make sure there is a token with this name: eca_tamper_condition:word_count_typeType:
select· Required: no · Default:valueAllowed values:
value,natural,numeric,lexical,count,_eca_token,'' Case sensitive comparison— config key:case-
Compare the values based on case sensitivity.
Type:
checkbox· Required: no · Default:false Negate the condition— config key:negate-
Negates the condition. Makes TRUE to FALSE and vice versa.
Type:
checkbox· Required: no · Default:false Limit— config key:limit-
If limit is set and positive, the returned items will contain a maximum of limit with the last item containing the rest of string. If limit is negative, all components except the last -limit are returned. If the limit parameter is zero, then this is treated as 1. If limit is not set, then there will be no limit on the number of items returned.
Type:
number· Required: no Data to be tampered— config key:left-
Type:
textarea· Required: yes · Default: empty string Data to compare with— config key:right-
Type:
textarea· Required: yes · Default: empty string