IfNode
class IfNode(val guard: ExpressionNode, val thenBranch: BlockNode, val elseBranch: BlockNode, val sourceLocation: SourceLocation, val comment: String? = null) : StatementNode
Executing statements conditionally.
Parameters
thenBranch
Statement to execute if the guard is true.
elseBranch
Statement to execute if the guard is false.
Constructors
Link copied to clipboard
fun IfNode(guard: ExpressionNode, thenBranch: BlockNode, elseBranch: BlockNode, sourceLocation: SourceLocation, comment: String? = null)