← Back to context

Comment by Zambyte

6 days ago

If takes two or three arguments, but never one. The condition is the one made syntactically obvious in most languages, the consequent is another required argument, and the alternative is optional.

Huh? if (true) {} takes precisely one argument.