adding ternary operator to filters

This would allow things such as: `success(result) | ternary("it worked", "it didn't")`.