If
Beginning of a conditional block.
- Value parameters:
- cond
the condition, which is treated as a boolean with zero being treated as
false
and non-zero astrue
. Note that multi-channel expansion does not apply here, because the branches may have side-effects which are not supposed to be repeated across channels. Instead, ifcond
expands to multiple channels, they are combined using logical|
(OR).
- See also:
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any