This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
string [2019/04/19 02:18] – created korshun | string [2019/04/19 02:48] (current) – [Checking string equality] korshun | ||
---|---|---|---|
Line 11: | Line 11: | ||
'' | '' | ||
- | ===== Comparing strings for equality ===== | + | ===== Checking string |
+ | <note warning> | ||
+ | Operator '' | ||
+ | To check if strings are equal, you need to compare their contents. ACSUtils provides an easy to use function for this, which returns true if two strings are equal: | ||
+ | |||
+ | '' | ||
+ | |||
+ | Internally, this function calls harder to use [[zdoom> | ||
+ | |||
+ | There is also a case-insensitive version: | ||
+ | |||
+ | '' | ||
+ | |||
+ | It's implemented using [[zdoom> | ||
+ | |||
+ | ===== String functions ===== | ||
+ | |||
+ | ==== StrIsEmpty ==== | ||
+ | '' | ||
+ | |||
+ | Returns true if the string is an empty string ('' | ||