ternary filter

cause I find: 'truval' if test else 'falseval' , too confusing