Is there a way to use the ternary operator to choose between two operators?

Example:


BOOL greaterThan = true;

int x = 5;
int y = 10;