Wuya Tutorial-JavaScript-XOR Function

describe

The XOR function returns the logical exclusive OR of all arguments. If the odd number of the provided condition is judged to be TRUE, the XOR function returns TRUE, otherwise it returns FALSE.

grammar

XOR (logical1, [logical2],…)

debate

Argument describe Required/Optional
logical1 logical1 is required and subsequent logical values are optional.1 to 254 conditions you want to test that can be either TRUE or FALSE, and can be logical values, arrays, or references. Required
logical2, … Optional

Notes

  • XOR

    • The "XOR" logical operation will return True if one (and only one) of the two provided conditions evaluates to True. Think of it as "A or B, but not A and B".

    • When there is only one condition or there are more than two conditions, if the conditions of an odd number of conditions are True, the output of the "XOR" operation is True.

  • Arguments must evaluate to a logical value, such as TRUE or FALSE, or be evaluated in an array or reference containing a logical value.

  • If the array or reference parameter contains text or empty cells, these values ​​will be ignored.

  • If the specified range does not contain a logical value, XOR returns a #VALUE! error value.

  • You can use the XOR array formula to see if a value occurs in an array. To enter an array formula, press Ctrl + Shift + Enter.

  • When the number of TRUE inputs is an odd number, the output of XOR is TRUE, and when the number of TRUE inputs is an even number, the output is FALSE.

  • #NAME? If Excel does not recognize the function name, an error occurs. This may be because you are using an older version of Excel that does not support the Xor feature.

applicability

Excel 2013,Excel 2016

Example

XOR Function

XOR function in JavaScript - Wuya Tutorial Network Wuya Tutorial Network provides a description of the XOR function that returns the logical exclusive OR of all parameters. If the odd number of conditions provided is TRUE, the XOR function returns T... https://www.learnfk.com/javascript/advanced-excel-logical-xor-function.html

Guess you like

Origin blog.csdn.net/w116858389/article/details/132899858