summaryrefslogtreecommitdiffstats
path: root/helpcontent2/source/text/scalc/01/func_ifs.xhp
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 16:51:28 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 16:51:28 +0000
commit940b4d1848e8c70ab7642901a68594e8016caffc (patch)
treeeb72f344ee6c3d9b80a7ecc079ea79e9fba8676d /helpcontent2/source/text/scalc/01/func_ifs.xhp
parentInitial commit. (diff)
downloadlibreoffice-upstream.tar.xz
libreoffice-upstream.zip
Adding upstream version 1:7.0.4.upstream/1%7.0.4upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'helpcontent2/source/text/scalc/01/func_ifs.xhp')
-rw-r--r--helpcontent2/source/text/scalc/01/func_ifs.xhp48
1 files changed, 48 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..08f55172b
--- /dev/null
+++ b/helpcontent2/source/text/scalc/01/func_ifs.xhp
@@ -0,0 +1,48 @@
+<?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="ifsfunciton01">
+ <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/00/avail_release.xhp#5.2"/>
+ <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>
+ <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>