by Accensus » Mon Aug 07, 2017 6:06 am
Couldn't find traces of that in the ZScript source. An example of where it could be useful:
Code: Select all
string Tag = ToLower(GetWeaponTag());
if (Tag.IndexOf("someword") != -1) { ... }
That's because IndexOf() isn't case insensitive. Workarounds would probably require a truckload of checks.
Couldn't find traces of that in the ZScript source. An example of where it could be useful:
[code=PHP]string Tag = ToLower(GetWeaponTag());
if (Tag.IndexOf("someword") != -1) { ... } [/code]
That's because IndexOf() isn't case insensitive. Workarounds would probably require a truckload of checks.