Edited: If statement in PsychoJS

thanks, @ajus, this at least gave more information.
It looks like mouse_decks.clicked_name is set correctly, unless it needs to be converted from an array in order to match the if statements in the JS code at the end of routine.
deckChoice is printed to the console as well, so confirmed that it did not change from 0.
Any ideas?