Tables recognizing letters instead of numbers

Here is a link to one of my recent projects:

I use tables to help students write their answers in, and the table will assess correctness. Something I would like to figure out but don’t seem to be able to is how to get a table to register correctness.

an example of a part of the code is this:
initialCellContent(1,3): when figure1number =134 “:white_check_mark:” otherwise “”

I would like to figure out how instead it registering 134, i could replace it to register “ab” or any letters.

If you want to use text, you need to use quotes.

when using this line:
initialCellContent(1,3): when figure1number =134 “:white_check_mark:” otherwise “”

if I was to write instead
initialCellContent(1,3): when figure1number =“ab” “:white_check_mark:” otherwise “”

or any derivative of that, i keep getting an error notice and it will not work.

Looks like you have your variable figure1number set to be a numeric value. When you defined your variable, change it to figure1number.cellContent(1,2), or whatever the location is in the table. This will allow it to be read as text.

Or if it needs to stay a number for other calculations try

… when “${figure1number}” = “ab” …