If

final case class If(cond: B)

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 as true. 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, if cond expands to multiple channels, they are combined using logical | (OR).

See also:
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Concrete methods

def Then[A](branch: => A): IfThen[A]

Inherited methods

def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product