Easier way to code this in a single expression?


#1

image

EDIT : Is this correct ?


#2

Looks good to me, or enclose the whole expression in a () for good measure