C# Class LitDev.LDLogic

Show file Open project: litdev1/LitDev

Public Methods

Method Description
And ( Primitive value1, Primitive value2 ) : Primitive

The And operator. And("True","True") = "True" And("False","False") = "False" And("True","False") = "False" And("False","True") = "False"

EQ ( Primitive value1, Primitive value2 ) : Primitive

The equality operator. Checks if value1 is equal to value2. It also works for strings, where a lexical comparison is made.

GE ( Primitive value1, Primitive value2 ) : Primitive

The greater than or equal operator. Checks if value1 is greater than or equal to value2. It also works for strings, where a lexical comparison is made.

GT ( Primitive value1, Primitive value2 ) : Primitive

The greater than operator. Checks if value1 is greater than value2. It also works for strings, where a lexical comparison is made.

LE ( Primitive value1, Primitive value2 ) : Primitive

The less than or equal operator. Checks if value1 is less than or equal to value2. It also works for strings, where a lexical comparison is made.

LT ( Primitive value1, Primitive value2 ) : Primitive

The less than operator. Checks if value1 is less than value2. It also works for strings, where a lexical comparison is made.

NE ( Primitive value1, Primitive value2 ) : Primitive

The inequality operator. Checks if value1 is not equal to value2. It also works for strings, where a lexical comparison is made.

Not ( Primitive value ) : Primitive

The Not operator. Not("True") = "False" Not("False") = "True"

Or ( Primitive value1, Primitive value2 ) : Primitive

The Or operator. Or("True","True") = "True" Or("False","False") = "False" Or("True","False") = "True" Or("False","True") = "True"

Switch ( Primitive condition, Primitive value1, Primitive value2 ) : Primitive

A sorthand conditional statement.

XOr ( Primitive value1, Primitive value2 ) : Primitive

The XOr (exclusive or) operator. XOr("True","True") = "False" XOr("False","False") = "False" XOr("True","False") = "True" XOr("False","True") = "True"

Method Details

And() public static method

The And operator. And("True","True") = "True" And("False","False") = "False" And("True","False") = "False" And("False","True") = "False"
public static And ( Primitive value1, Primitive value2 ) : Primitive
value1 Primitive The first value ("True" or "False").
value2 Primitive The second value ("True" or "False").
return Primitive

EQ() public static method

The equality operator. Checks if value1 is equal to value2. It also works for strings, where a lexical comparison is made.
public static EQ ( Primitive value1, Primitive value2 ) : Primitive
value1 Primitive The first value.
value2 Primitive The second value.
return Primitive

GE() public static method

The greater than or equal operator. Checks if value1 is greater than or equal to value2. It also works for strings, where a lexical comparison is made.
public static GE ( Primitive value1, Primitive value2 ) : Primitive
value1 Primitive The first value.
value2 Primitive The second value.
return Primitive

GT() public static method

The greater than operator. Checks if value1 is greater than value2. It also works for strings, where a lexical comparison is made.
public static GT ( Primitive value1, Primitive value2 ) : Primitive
value1 Primitive The first value.
value2 Primitive The second value.
return Primitive

LE() public static method

The less than or equal operator. Checks if value1 is less than or equal to value2. It also works for strings, where a lexical comparison is made.
public static LE ( Primitive value1, Primitive value2 ) : Primitive
value1 Primitive The first value.
value2 Primitive The second value.
return Primitive

LT() public static method

The less than operator. Checks if value1 is less than value2. It also works for strings, where a lexical comparison is made.
public static LT ( Primitive value1, Primitive value2 ) : Primitive
value1 Primitive The first value.
value2 Primitive The second value.
return Primitive

NE() public static method

The inequality operator. Checks if value1 is not equal to value2. It also works for strings, where a lexical comparison is made.
public static NE ( Primitive value1, Primitive value2 ) : Primitive
value1 Primitive The first value.
value2 Primitive The second value.
return Primitive

Not() public static method

The Not operator. Not("True") = "False" Not("False") = "True"
public static Not ( Primitive value ) : Primitive
value Primitive The value to operate on ("True" or "False").
return Primitive

Or() public static method

The Or operator. Or("True","True") = "True" Or("False","False") = "False" Or("True","False") = "True" Or("False","True") = "True"
public static Or ( Primitive value1, Primitive value2 ) : Primitive
value1 Primitive The first value ("True" or "False").
value2 Primitive The second value ("True" or "False").
return Primitive

Switch() public static method

A sorthand conditional statement.
public static Switch ( Primitive condition, Primitive value1, Primitive value2 ) : Primitive
condition Primitive A condition or variable that evaluates to "True" or "False".
value1 Primitive The value to return if condition is "True".
value2 Primitive The value to return if condition is "False".
return Primitive

XOr() public static method

The XOr (exclusive or) operator. XOr("True","True") = "False" XOr("False","False") = "False" XOr("True","False") = "True" XOr("False","True") = "True"
public static XOr ( Primitive value1, Primitive value2 ) : Primitive
value1 Primitive The first value ("True" or "False").
value2 Primitive The second value ("True" or "False").
return Primitive