Having a text string, check a table for correct answer?
Ive recently followed tshirtbooth video on how to make a custom keyboard and insert text string. But does anyone have a suggestion how I can have that check a table to see if what was answered is correct? I've been trying different things for a couple days and cant get it. I know im over looking something here, because im sure its a easy process to accomplish.
Comments
Simple example with 1 Table for all Levels:
- Say for a quiz game I'm at Level 2, answering question 5.
- I start searching at Row 11 (because I know that's where the 10 sets of questions for Level 2 start) and work my way somehow to Row 15 (because this is where Level 2 Question 5 is located). You can work out your Rules for this on your own using simple math, I'm sure
- Then just do a simple Attribute check if the answer given is equal to the answer or answers in the selected Row. You will probably have tableCellValue( ) on the right-hand side.
- If you're making a quiz game with several possible answers for a given question, you can assign multiple columns for possible answers and just skim through them each time
Good luck!