—
var selected = idnum ? new Object({uris: [state.itemEntryContainer[idnum].uri]}) : state.itemEntryContainer.list();
works :)
Message permanent page
— Turns out I was writing the ternary wrong the entire time
— I swapped the colon and question mark
—
conditional : iftrue ? iffalse
= wrong
—
conditional ? iftrue : iffalse
= right
— But a few days ago you wrote it right
— I wrote it right in chat!