| Syntax | $containsDirtyWord{string}{sensitivity_level} |
| Documentation | Examines if the given character sequence contains an entry of the 'DirtyWords' table of this accounts database: $containsDirtyWord{string}{sensitivity_level}
Parameters: string, the string whos content is to be examined.
sensitivity_level, an optional parameter to indicate that the contents of the given string are to be compared
only with those entries of the 'DirtyWords' table to witch the given sensitivity_level value is assigned.
The sensitivity level can be a value of the column labeled 'LEVEL' of the 'DirtyWords' table. Since this
values are costumized the programmer needs to be familiar with the values and their meaning.
Returns: 1 if and only if the given string contains at least one entry of the 'DirtyWords' table; 0 otherwise.
Note: before using $containsDirtyWord the function $dirtyWordsUpdated has to be called.
|
| Examples |
| Examine if the string 'some_string' contains any entries of the 'DirtyWords' table:
$set{some_string}{some character sequence}
$dirtyWordsUpdated{}
$containsDirtyWord{string}{sensitivity_level} |
| Group | String |
| Minimum required transaction-mode: | NONE |
| Required scripting permission of the developer | PERMISSION_FL_BASIC |
| Minimum parameters | 1 |
| Maximum parameters | 3 |