summaryrefslogtreecommitdiffstats
path: root/helpcontent2/source/text/scalc/01/func_ifs.xhp
diff options
context:
space:
mode:
Diffstat (limited to 'helpcontent2/source/text/scalc/01/func_ifs.xhp')
-rw-r--r--helpcontent2/source/text/scalc/01/func_ifs.xhp51
1 files changed, 51 insertions, 0 deletions
diff --git a/helpcontent2/source/text/scalc/01/func_ifs.xhp b/helpcontent2/source/text/scalc/01/func_ifs.xhp
new file mode 100644
index 000000000..26cd70093
--- /dev/null
+++ b/helpcontent2/source/text/scalc/01/func_ifs.xhp
@@ -0,0 +1,51 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<helpdocument version="1.0">
+ <!--
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ -->
+
+ <meta>
+ <topic id="ifs01" indexer="include" status="PUBLISH">
+ <title id="tit" xml-lang="en-US">IFS function</title>
+ <filename>/text/scalc/01/func_ifs.xhp</filename>
+ </topic>
+ </meta>
+ <body>
+ <section id="ifsfunction01">
+ <bookmark id="bm_id721556234923653" xml-lang="en-US" branch="hid/SC_HID_FUNC_IFS_MS" localize="false"/>
+ <bookmark xml-lang="en-US" branch="index" id="bm_id901556242230198">
+ <bookmark_value>IFS function</bookmark_value>
+ </bookmark>
+ <h2 id="hd_id271556234923654"><variable id="ifsfunct"><link href="text/scalc/01/func_ifs.xhp" name="function ifs">IFS</link></variable></h2>
+ <paragraph id="par_id171556234923655" role="paragraph" xml-lang="en-US"><variable id="variable name"><ahelp hid=".">IFS is a multiple IF-function.</ahelp></variable></paragraph>
+ </section>
+ <embed href="text/scalc/01/ful_func.xhp#func_head_syntax"/>
+
+ <paragraph role="code" id="par_id271556235333493">IFS(expression1; result1[; expression2; result2][; ... ; [expression127; result127]])</paragraph>
+ <paragraph role="paragraph" id="par_id31556235655212"><emph>expression1, expression2, ...</emph> are any boolean values or expressions that can be TRUE or FALSE</paragraph>
+ <paragraph role="paragraph" id="par_id441556235649549"><emph>result1, result2, ... </emph> are the values that are returned if the logical test is TRUE</paragraph>
+ <paragraph role="paragraph" id="par_id641556235704257">IFS( expression1, result1, expression2, result2, expression3, result3 ) is executed as</paragraph>
+ <paragraph role="paragraph" id="par_id551556235712759">IF expression1 is TRUE</paragraph>
+ <paragraph role="paragraph" id="par_id1001556235718948">THEN result1</paragraph>
+ <paragraph role="paragraph" id="par_id571556235725969">ELSE IF expression2 is TRUE</paragraph>
+ <paragraph role="paragraph" id="par_id581556235731982">THEN result2</paragraph>
+ <paragraph role="paragraph" id="par_id961556235738258">ELSE IF expression3 is TRUE</paragraph>
+ <paragraph role="paragraph" id="par_id951556235743954">THEN result3</paragraph>
+ <paragraph role="paragraph" id="par_id671556235758504">To get a default result should no expression be TRUE, add a last expression that is always TRUE, like TRUE or 1=1 followed by the default result.</paragraph>
+ <paragraph role="paragraph" id="par_id541556235771022">If there is a result missing for an expression or is no expression is TRUE, a #N/A error is returned.</paragraph>
+ <paragraph role="paragraph" id="par_id181556235788473">If expression is neither TRUE or FALSE, a #VALUE error is returned.</paragraph>
+ <embed href="text/scalc/01/common_func.xhp#sectiontechinfo"/>
+ <embed href="text/scalc/00/avail_release.xhp#5.2"/>
+ <embed href="text/scalc/01/common_func.xhp#notODFF"/>
+ <paragraph role="paragraph" id="par_id341640873986703" localize="false"><literal>COM.MICROSOFT.IFS</literal></paragraph>
+ <section id="relatedtopics">
+ <embed href="text/scalc/01/func_switch.xhp#switchfunct"/>
+ <paragraph role="paragraph" id="par_id781556244709752"><link href="text/scalc/01/04060105.xhp#Section4" name="if">IF</link></paragraph>
+ </section>
+ </body>
+</helpdocument>