ListContains won't work
Esyre
10 May 2019, 18:17I have
player.somelist=newStringList()
list add (player.somelist, somestring)
And then
{if ListContains(player.somelist, somestring):sometext)
But there is nothing displayed.
Same thing with "in" or objectlist.

Dcoder
10 May 2019, 19:21Some of your syntax was wrong. It should be:
player.somelist = NewStringList()
list add (player.somelist, "somestring")
if (ListContains (player.somelist, "somestring")) {
msg ("sometext")
}
Esyre
10 May 2019, 19:30I can't do this with text processing ?
mrangel
10 May 2019, 20:03The "if" function in the text processor does odd things which can cause some functions not to work.
Change {if
to {either
(which treats its condition as a normal Quest expression) and it should work fine.
Esyre
10 May 2019, 20:11Ok thanks.