Problems with a word game and tables
I'm busy with a dutch word game.
I have imported the words to a table, but how can you check if a word is in the table.
The words are below each.
I have imported the words to a table, but how can you check if a word is in the table.
The words are below each.
Answers
Thanks for your help!
How can I fix it? If I combine there's a space between ! and the word.
In fact, you can have all the words strung together without any spaces or anything and the 'contains' test will still work.
For example, if you had a text attribute called "MyStringOfLetters" that contained the letters,"nopainnogain" you could create a rule that said:
When Attribute: (MyStringOfLetters) contains: pain
--Display Text: "Yes it is there!"
Otherwise
--Display Text: "Sorry, try again."
The actor would display the text "Yes it is there!"
The test would also work for any string of of successive letters like:
no
pain
gain
nop
nopa
nopain
.
.
.
noga
nogain
in
n
etc...
I see I was not clear. (Probably because I went into too much detail on a side note.)
The point is you can use anything for your item delimiters. You seemed it indicate that excel was adding in a space for some reason. My intent was to explain that you can use anything for an item delimiter (or nothing at all). If you want to change the the contains rule to search for "! myword!" (with a space in there), it is OK. You just change the rule. You can use spaces or anything else.
Touch and then-
Attribute Self.W1 contains "!".. game.Invoer .."!"
In Self.W1 stands the tekst for testing ! ar ! and in game.Invoer stands ar.
But it doesn't work!
If not export to .csv and send that or if you have managed to get the "!" added to your words but still need the spaces removed ... I believe you should be able to open the .csv with a text editor and then find and replace spaces with nothing .. hope that helps!