C# Класс LitDev.LDLogic

Показать файл Открыть проект

Открытые методы

Метод Описание
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"

Описание методов

And() публичный статический Метод

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").
Результат Primitive

EQ() публичный статический Метод

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.
Результат Primitive

GE() публичный статический Метод

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.
Результат Primitive

GT() публичный статический Метод

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.
Результат Primitive

LE() публичный статический Метод

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.
Результат Primitive

LT() публичный статический Метод

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.
Результат Primitive

NE() публичный статический Метод

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.
Результат Primitive

Not() публичный статический Метод

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").
Результат Primitive

Or() публичный статический Метод

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").
Результат Primitive

Switch() публичный статический Метод

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".
Результат Primitive

XOr() публичный статический Метод

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").
Результат Primitive