Files
Maxim Kadushkin 035166509d Merge pull request #2755 from ONLYOFFICE/feature/update-lunr-without-kor
Feature/update lunr without kor
2023-12-21 16:25:39 +03:00

51 lines
2.7 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>IF Function</title>
<meta charset="utf-8" />
<meta name="description" content="" />
<link type="text/css" rel="stylesheet" href="../../../../../../common/main/resources/help/editor.css" />
<link type = "text/css" rel = "stylesheet" href = "../../images/sprite.css" />
<script type="text/javascript" src="../callback.js"></script>
<script type="text/javascript" src="../../../../../../common/main/resources/help/search/js/page-search.js"></script>
</head>
<body>
<div class="mainpart">
<div class="search-field">
<input id="search" class="searchBar" placeholder="Search" type="text" onkeypress="doSearch(event)">
</div>
<h1>IF Function</h1>
<p>The <b>IF</b> function is one of the <a href="../UsageInstructions/InsertFunction.htm#logical" onclick="onhyperlinkclick(this)">logical functions</a>. Is used to check the logical expression and return one value if it is TRUE, or another if it is FALSE.</p>
<h3>Syntax</h3>
<p><b><em>IF(logical_test, value_if_true, [value_if_false])</em></b></p>
<p>The <b>IF</b> function has the following arguments:</p>
<table style="width: 40%">
<tr>
<th style="background-color: #f4f4f4" width="150ch"><b>Argument</b></th>
<th style="background-color: #f4f4f4"><b>Description</b></th>
</tr>
<tr>
<td><b><em>logical_test</em></b></td>
<td>The condition that you want to test.</td>
</tr>
<tr>
<td><b><em>value_if_true</em></b></td>
<td>The value to be returned if the result is TRUE.</td>
</tr>
<tr>
<td><b><em>value_if_false</em></b></td>
<td>The value to be returned if the result is FALSE.</td>
</tr>
</table>
<h3>Notes</h3>
<p><a href="../UsageInstructions/InsertFunction.htm#applyfunction" onclick="onhyperlinkclick(this)">How to apply</a> the <b>IF</b> function.</p>
<h3>Examples</h3>
<p>There are three arguments: <em>logical_test</em> = <b>A1&lt;100</b>, <em>value_if_true</em> = <b>0</b>, <em>value_if_false</em> = <b>1</b>, where <b>A1</b> is <b>12</b>. This logical expression is <b>TRUE</b>. So the function returns <b>0</b>.</p>
<p><img alt="IF Function: TRUE" src="../images/iftrue.png" /></p>
<p>If we change the <b>A1</b> value from <b>12</b> to <b>112</b>, the function returns <b>1</b>:</p>
<p><img alt="IF Function: FALSE" src="../images/iffalse.png" /></p>
</div>
</body>
</html>