C# Class LitDev.LDLogic

Afficher le fichier Open project: litdev1/LitDev

Méthodes publiques

Méthode 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 méthode

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").
Résultat Primitive

EQ() public static méthode

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.
Résultat Primitive

GE() public static méthode

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.
Résultat Primitive

GT() public static méthode

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.
Résultat Primitive

LE() public static méthode

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.
Résultat Primitive

LT() public static méthode

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.
Résultat Primitive

NE() public static méthode

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.
Résultat Primitive

Not() public static méthode

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").
Résultat Primitive

Or() public static méthode

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").
Résultat Primitive

Switch() public static méthode

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".
Résultat Primitive

XOr() public static méthode

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").
Résultat Primitive