此意图将 ternary 语句替换为 if else 语句。