if true, use the first one. if false, use the second one.
If you don't understand or aren't comfortable in using it, then use if else statements. Anything that makes your code readable is good. Writing a compact code aren't necessary good, especially in the long run.