Table of Contents

Class If

Namespace
Albatross.Expression.Prefix
Assembly
Albatross.Expression.dll

Represents the conditional If function that returns different values based on a boolean condition. Takes three operands: condition, value if true, value if false.

public class If : PrefixExpression, IPrefixExpression, IExpression, IToken
Inheritance
If
Implements
Inherited Members
Extension Methods

Constructors

If()

Initializes a new instance of the If class.

public If()

Methods

Run(List<object>)

Executes the prefix function with the evaluated operand values. Derived classes should override this method to implement specific function logic.

protected override object Run(List<object> operands)

Parameters

operands List<object>

The list of evaluated operand values.

Returns

object

The result of the function.