ternary

After a few tries, I finally found a way to use a ternary on the
assignment