Class If
Prefix if operation
Operand Count: 2 or 3
Operands
- condition: any
- result when true: any
- result when false, if omitted, will be default to null: any
Output Type: any
Usage: if( 3 > 2, "OK", "No")
Inheritance
System.Object
If
Assembly: Albatross.Expression.dll
Syntax
public class If : PrefixOperationToken, IToken
Properties
MaxOperandCount
Declaration
public override int MaxOperandCount { get; }
Property Value
Type |
Description |
System.Int32 |
|
Overrides
MinOperandCount
Declaration
public override int MinOperandCount { get; }
Property Value
Type |
Description |
System.Int32 |
|
Overrides
Name
Declaration
public override string Name { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
Symbolic
Declaration
public override bool Symbolic { get; }
Property Value
Type |
Description |
System.Boolean |
|
Overrides
Methods
EvalValue(Func<String, Object>)
Declaration
public override object EvalValue(Func<string, object> context)
Parameters
Type |
Name |
Description |
System.Func<System.String, System.Object> |
context |
|
Returns
Type |
Description |
System.Object |
|
Overrides
Implements
Extension Methods