Adding Support for Ternary Operators

In some cases it would be nice to have syntax to set conditions for if/else or other binary conditions. It would be nice to have these available in dynamic data scenarios using {echo:is_404} or similar.
i.e. be able to write out {echo:is_404} || {echo:is_search} or

{echo:acf_some_field => X} ? “condition_value” : “other_condition_value”;

2 Likes