How to run 2 dynamic events under ternary operation?

The forum has a really nice search option, which you can use to find if your question has already been asked.
Result: