summaryrefslogtreecommitdiff
path: root/source/text/sbasic/shared/03090103.xhp
diff options
context:
space:
mode:
Diffstat (limited to 'source/text/sbasic/shared/03090103.xhp')
-rw-r--r--source/text/sbasic/shared/03090103.xhp8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/text/sbasic/shared/03090103.xhp b/source/text/sbasic/shared/03090103.xhp
index 67c24baf55..d0780bd7c1 100644
--- a/source/text/sbasic/shared/03090103.xhp
+++ b/source/text/sbasic/shared/03090103.xhp
@@ -35,14 +35,14 @@
</section>
<embed href="text/sbasic/shared/00000003.xhp#functsyntax"/>
<bascode>
-<paragraph role="bascode" id="par_id3147560" xml-lang="en-US">IIf (Expression, ExpressionTrue, ExpressionFalse)</paragraph>
+<paragraph role="bascode" id="par_id3147560" xml-lang="en-US">IIf (Bool As Boolean, Variant1 As Variant, Variant2 As Variant) As Variant</paragraph>
</bascode>
<embed href="text/sbasic/shared/00000003.xhp#functparameters"/>
<paragraph role="paragraph" id="par_id3153381" xml-lang="en-US">
-<emph>Expression:</emph> Any expression that you want to evaluate. If the expression evaluates to <emph>True</emph>, the function returns the result of ExpressionTrue, otherwise it returns the result of ExpressionFalse.</paragraph>
+<emph>Bool</emph>: Any expression that you want to evaluate. If the expression evaluates to <emph>True</emph>, the function returns the value of Variant1, otherwise it returns the value of Variant2.</paragraph>
<paragraph role="paragraph" id="par_id3150870" xml-lang="en-US">
-<emph>ExpressionTrue, ExpressionFalse:</emph> Any expression, one of which will be returned as the function result, depending on the logical evaluation.</paragraph>
-<note id="par_id541598638231139">IIf evaluates both <literal>ExpressionTrue</literal> and <literal>ExpressionFalse</literal> even if it returns only one of them. If one of the expressions results in error, the function returns the error. For example, do not use IIF to bypass a possible division by zero result.</note>
+<emph>Variant1, Variant2</emph>: Any expression, one of which will be returned as the function result, depending on the logical evaluation.</paragraph>
+<note id="par_id541598638231139">IIf evaluates both <literal>Variant1</literal> and <literal>Variant2</literal> even if it returns only one of them. If one of the expressions results in error, the function returns the error. For example, do not use IIF to bypass a possible division by zero result.</note>
<embed href="text/sbasic/shared/00000003.xhp#errorcode"/>
<embed href="text/sbasic/shared/00000003.xhp#err5"/>
<embed href="text/sbasic/shared/00000003.xhp#functexample"/>