I am a Javascript novice and am trying to do something very basic, but cannot seem to get the syntax right.
I have yes/no custom state called “sortDescending” that I am trying to use to define the sort sequence in the above. I have tried every possible combination of brackets, curly brackets, straight brackets and semi colons that I can think of to no avail. Can someone please save me from eternal pain and suffering.
I don’t know JS, but games’s sortDescending’s value is either Yes or No. Your code appears to be evaluating for true, so maybe simplest fix is to change: if (whichOrder = ‘Yes’)… That will at least get the terms correct. I don’t know about other syntax, sorry.