While I knew about the inline “if” syntax and use it a lot, I didn’t know the “Else” keyword worked in this case. Amazing to still learn things this way (i.e. from someone else’s question in the forum) instead of everyday’s use of the IDE (and it’s not the first nor last time).
Thanks for sharing.
Yes - oddly, I didn’t know about the Else part either so the OP has done us both a favour.
There’s also a keyboard shortcut to have the IDE rewrite the one line if-then-else onto separate lines, to assist debugging. But I can’t remember what it is.