0

is there a way to make the "inverse" of this type of conditional?

For example, we have this conditional:

number = (max) ? a : b;

Instead of returning a value, I want to execute an action, without returning anything, for example:

(max) ? func1(a) :func2(a);

Is that possible? Does that make sense?

Thanks.

Maurício Giordano
  • 3,116
  • 4
  • 32
  • 60

0 Answers0