If

final case class If(cond: Expr, then1: Expr, else1: Option[Expr], evalType: Type, promoteToType: Option[Type]) extends Expr

If Condition

 if(cond) then { ... } else { ... }
 if(cond) then { ... }

 int x = if(conf) then { 1+2; } else { 2*5; }
Companion:
object
trait Serializable
trait Product
trait Equals
class Expr
class Stat
class AST
class Object
trait Matchable
class Any

Value members

Concrete methods

override def visit[S, R](s: S, v: TreeVisitor[S, R]): Either[Throwable, R]
Definition Classes
override def withPromoteToType(t: Option[Type]): If
Definition Classes

Inherited methods

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