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)

Functions

Link copied to clipboard
override fun toDocument(): Document

Properties

Link copied to clipboard
open override val comment: String? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val sourceLocation: SourceLocation
Link copied to clipboard