LocalVariableStringCondition ​
Inherits: Condition < Resource
Checks if a local string variable in an event meets certain criteria
Properties ​
String | variable_key | "" |
StringComparison | comparison | StringComparison.EQUALS |
String | compare_value | "" |
bool | case_sensitive | true |
Methods ​
String | get_function_description() |
bool | evaluate( argument: Variant = null ) |
String | get_description() |
String | get_expected_argument_type() |
bool | is_valid() |
Enumerations ​
enum StringComparison ​
The options of string comparison: equals, not equals, contains, not contains, starts with, ends with, is empty, is not empty.
- EQUALS =
0 - NOT_EQUALS =
1 - CONTAINS =
2 - NOT_CONTAINS =
3 - STARTS_WITH =
4 - ENDS_WITH =
5 - IS_EMPTY =
6 - IS_NOT_EMPTY =
7
Property descriptions ​
Variable Check
String variable_key = "" ​
The key of the variable
StringComparison comparison = StringComparison.EQUALS ​
How the text is compared: equals, contains, starts or ends with, is empty ...
String compare_value = "" ​
The text to compare with
bool case_sensitive = true ​
Capital letters must match
Method descriptions ​
String get_function_description() ​
The sentence the editor shows for the condition, with {placeholders} for its values.
bool evaluate( argument: Variant = null ) ​
Is the condition met?
String get_description() ​
A short text about what the condition checks.
String get_expected_argument_type() ​
The kind of thing the condition is checked against (an entity, an encounter ...).
bool is_valid() ​
Are the settings of the condition complete?