Warning, /office/calligra/sheets/functions/logic.xml is written in an unsupported language. File is not indexed.

0001 <!DOCTYPE KSpreadFunctions>
0002 <KSpreadFunctions>
0003 
0004 <Group>
0005     <GroupName>Logical</GroupName>
0006 
0007    <Function>
0008        <Name>FALSE</Name>
0009        <Type>Boolean</Type>
0010        <Help>
0011            <Text>The FALSE() function returns the boolean value FALSE.</Text>
0012            <Syntax>FALSE()</Syntax>
0013            <Example>FALSE() returns FALSE</Example>
0014        </Help>
0015    </Function>
0016 
0017    <Function>
0018        <Name>TRUE</Name>
0019        <Type>Boolean</Type>
0020        <Help>
0021            <Text>The TRUE() function returns the boolean value TRUE.</Text>
0022            <Syntax>TRUE()</Syntax>
0023            <Example>TRUE() returns TRUE</Example>
0024        </Help>
0025    </Function>
0026 
0027    <Function>
0028        <Name>AND</Name>
0029        <Type>Boolean</Type>
0030        <Parameter optional="true">
0031            <Comment>Boolean values</Comment>
0032            <Type range="true">Boolean</Type>
0033        </Parameter>
0034        <Parameter optional="true">
0035            <Comment>Boolean values</Comment>
0036            <Type range="true">Boolean</Type>
0037        </Parameter>
0038        <Parameter optional="true">
0039            <Comment>Boolean values</Comment>
0040            <Type range="true">Boolean</Type>
0041        </Parameter>
0042        <Parameter optional="true">
0043            <Comment>Boolean values</Comment>
0044            <Type range="true">Boolean</Type>
0045        </Parameter>
0046        <Parameter optional="true">
0047            <Comment>Boolean values</Comment>
0048            <Type range="true">Boolean</Type>
0049        </Parameter>
0050        <Help>
0051            <Text>The AND() function returns True if all the values are true. Otherwise it returns False (unless any of the values in an error - then it returns an error).</Text>
0052            <Syntax>AND(value;value;...)</Syntax>
0053            <Example>AND(true;true;true) returns True</Example>
0054            <Example>AND(true;false) returns False</Example>
0055        </Help>
0056    </Function>
0057 
0058    <Function>
0059        <Name>OR</Name>
0060        <Type>Boolean</Type>
0061        <Parameter optional="true">
0062            <Comment>Boolean values</Comment>
0063            <Type range="true">Boolean</Type>
0064        </Parameter>
0065        <Parameter optional="true">
0066            <Comment>Boolean values</Comment>
0067            <Type range="true">Boolean</Type>
0068        </Parameter>
0069        <Parameter optional="true">
0070            <Comment>Boolean values</Comment>
0071            <Type range="true">Boolean</Type>
0072        </Parameter>
0073        <Parameter optional="true">
0074            <Comment>Boolean values</Comment>
0075            <Type range="true">Boolean</Type>
0076        </Parameter>
0077        <Parameter optional="true">
0078            <Comment>Boolean values</Comment>
0079            <Type range="true">Boolean</Type>
0080        </Parameter>
0081        <Help>
0082            <Text>The OR() function returns True if at least one of the values is true. Otherwise it returns False (unless any of the values is an error, then it returns an error).</Text>
0083            <Syntax>OR(value;value;...)</Syntax>
0084            <Example>OR(false;false;false) returns False</Example>
0085            <Example>OR(true;false) returns True</Example>
0086        </Help>
0087    </Function>
0088 
0089    <Function>
0090        <Name>NAND</Name>
0091        <Type>Boolean</Type>
0092        <Parameter optional="true">
0093            <Comment>Boolean values</Comment>
0094            <Type range="true">Boolean</Type>
0095        </Parameter>
0096        <Parameter optional="true">
0097            <Comment>Boolean values</Comment>
0098            <Type range="true">Boolean</Type>
0099        </Parameter>
0100        <Parameter optional="true">
0101            <Comment>Boolean values</Comment>
0102            <Type range="true">Boolean</Type>
0103        </Parameter>
0104        <Parameter optional="true">
0105            <Comment>Boolean values</Comment>
0106            <Type range="true">Boolean</Type>
0107        </Parameter>
0108        <Parameter optional="true">
0109            <Comment>Boolean values</Comment>
0110            <Type range="true">Boolean</Type>
0111        </Parameter>
0112        <Help>
0113            <Text>The NAND() function returns True if at least one value is not true. Otherwise it returns False.</Text>
0114            <Syntax>NAND(value;value;...)</Syntax>
0115            <Example>NAND(true;false;false) returns True</Example>
0116            <Example>NAND(true;true) returns False</Example>
0117        </Help>
0118    </Function>
0119 
0120    <Function>
0121        <Name>NOR</Name>
0122        <Type>Boolean</Type>
0123        <Parameter optional="true">
0124            <Comment>Boolean values</Comment>
0125            <Type range="true">Boolean</Type>
0126        </Parameter>
0127        <Parameter optional="true">
0128            <Comment>Boolean values</Comment>
0129            <Type range="true">Boolean</Type>
0130        </Parameter>
0131        <Parameter optional="true">
0132            <Comment>Boolean values</Comment>
0133            <Type range="true">Boolean</Type>
0134        </Parameter>
0135        <Parameter optional="true">
0136            <Comment>Boolean values</Comment>
0137            <Type range="true">Boolean</Type>
0138        </Parameter>
0139        <Parameter optional="true">
0140            <Comment>Boolean values</Comment>
0141            <Type range="true">Boolean</Type>
0142        </Parameter>
0143        <Help>
0144            <Text>The NOR() function returns True if all the values given as parameters are of boolean type and have the value false. Otherwise it returns False.</Text>
0145            <Syntax>NOR(value;value;...)</Syntax>
0146            <Example>NOR(true;false;false) returns False</Example>
0147            <Example>NOR(false;false) returns True</Example>
0148        </Help>
0149    </Function>
0150 
0151    <Function>
0152        <Name>XOR</Name>
0153        <Type>Boolean</Type>
0154        <Parameter optional="true">
0155            <Comment>Boolean values</Comment>
0156            <Type range="true">Boolean</Type>
0157        </Parameter>
0158        <Parameter optional="true">
0159            <Comment>Boolean values</Comment>
0160            <Type range="true">Boolean</Type>
0161        </Parameter>
0162        <Parameter optional="true">
0163            <Comment>Boolean values</Comment>
0164            <Type range="true">Boolean</Type>
0165        </Parameter>
0166        <Parameter optional="true">
0167            <Comment>Boolean values</Comment>
0168            <Type range="true">Boolean</Type>
0169        </Parameter>
0170        <Parameter optional="true">
0171            <Comment>Boolean values</Comment>
0172            <Type range="true">Boolean</Type>
0173        </Parameter>
0174        <Help>
0175            <Text>The XOR() function returns False if the number of True values is even. Otherwise it returns True. It returns an error if any argument is an error.</Text>
0176            <Syntax>XOR(value;value;...)</Syntax>
0177            <Example>XOR(false;false;false) returns True</Example>
0178            <Example>XOR(true;false) returns True</Example>
0179        </Help>
0180    </Function>
0181 
0182    <Function>
0183        <Name>NOT</Name>
0184        <Type>Boolean</Type>
0185        <Parameter>
0186            <Comment>Boolean value</Comment>
0187            <Type>Boolean</Type>
0188        </Parameter>
0189        <Help>
0190            <Text>The NOT() function returns True if the value is False and returns False if the value is True. It returns an error if the input in an error.</Text>
0191            <Syntax>NOT(bool)</Syntax>
0192            <Example>NOT(false) returns True</Example>
0193            <Example>NOT(true) returns False</Example>
0194        </Help>
0195    </Function>
0196 
0197    <Function>
0198        <Name>IF</Name>
0199        <Type>Any</Type>
0200        <Parameter>
0201            <Comment>Condition</Comment>
0202            <Type>Boolean</Type>
0203        </Parameter>
0204        <Parameter>
0205            <Comment>If true</Comment>
0206            <Type>Any</Type>
0207        </Parameter>
0208        <Parameter optional="true">
0209            <Comment>If false</Comment>
0210            <Type>Any</Type>
0211        </Parameter>
0212        <Help>
0213            <Text>The IF() function is a conditional function. This function returns the second parameter if the condition is True. Otherwise it returns the third parameter (which defaults to being false).</Text>
0214            <Syntax>IF(condition;if_true;if_false)</Syntax>
0215            <Example>A1=4;A2=6;IF(A1>A2;5;3) returns 3</Example>
0216        </Help>
0217    </Function>
0218 
0219    <Function>
0220        <Name>IFERROR</Name>
0221        <Type>Any</Type>
0222        <Parameter>
0223            <Comment>Any X</Comment>
0224            <Type>Any</Type>
0225        </Parameter>
0226        <Parameter>
0227            <Comment>Any Alternative</Comment>
0228            <Type>Any</Type>
0229        </Parameter>
0230        <Help>
0231            <Text>Return X unless it is an Error, in which case return an alternative value.</Text>
0232            <Syntax>IFERROR(AnyX;AnyAlternative)</Syntax>
0233            <Example>IFERROR(A1;A2) returns the content of A1 if that content is not an error-value else the content of A2 is returned.</Example>
0234        </Help>
0235    </Function>
0236 
0237    <Function>
0238        <Name>IFNA</Name>
0239        <Type>Any</Type>
0240        <Parameter>
0241            <Comment>Any X</Comment>
0242            <Type>Any</Type>
0243        </Parameter>
0244        <Parameter>
0245            <Comment>Any Alternative</Comment>
0246            <Type>Any</Type>
0247        </Parameter>
0248        <Help>
0249            <Text>Return X unless it is an NA, in which case return an alternative value.</Text>
0250            <Syntax>IFNA(AnyX;AnyAlternative)</Syntax>
0251            <Example>IFNA(A1;A2) returns the content of A1 if that content is not an #N/A error-value else the content of A2 is returned.</Example>
0252        </Help>
0253    </Function>
0254 </Group>
0255 
0256 </KSpreadFunctions>