December 2016
— So if I give my variable declaration as an operand of the ternary, it would work, as well as using Object()
Object()
Message permanent page
var selected = idnum ? new Object({uris: [state.itemEntryContainer[idnum].uri]}) : state.itemEntryContainer.list();
— Turns out I was writing the ternary wrong the entire time
— Haha, why?
— I swapped the colon and question mark
—
conditional : iftrue ? iffalse
conditional ? iftrue : iffalse
— But a few days ago you wrote it right
— I wrote it right in chat!
— Haha
— Lmao 😂
— Of all my ternaries that one was wrong in the file