Логические functions

[ ] indicates optional parameters

ЕСЛИ(логическое_выражение, [значение_если_истина], [значение_если_ложь])
И(логическое1, [логическое2, ...])
ИЛИ(логическое1, [логическое2, ...])
ИСТИНА()
ЛОЖЬ()
НЕ(флаг)


Логические functions

ЕСЛИ(логическое_выражение, [значение_если_истина], [значение_если_ложь])

Returns one of two other values depending no whether the logical test evaluates to ИСТИНА or ЛОЖЬ.

логическое_выражениеAn expression that results in ИСТИНА or ЛОЖЬ.
значение_если_истинаThe value to be returned of the logical test is ИСТИНА. If this parameter is omitted it defaults to 0.
значение_если_ложьThe value to be returned of the logical test is ЛОЖЬ. If this parameter is omitted it defaults to ЛОЖЬ.


И(логическое1, [логическое2, ...])

Returns ИСТИНА if all of the input values are ИСТИНА.

логическое1, ...The values that you want to check.


ИЛИ(логическое1, [логическое2, ...])

Returns ИСТИНА if any of the input values are ИСТИНА.

логическое1, ...The values that you want to check.


ИСТИНА()

Returns the logical value ИСТИНА.



ЛОЖЬ()

Returns the logical value ЛОЖЬ.



НЕ(флаг)

Returns ИСТИНА if the input expression evaluates to ЛОЖЬ, and vice versa.

флагThe logical expression for which you want the opposite value.