Difference between revisions of "Manuals/calci/OR"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "<div id="16SpaceContent" align="left"><div class="ZEditBox" align="justify"> Syntax </div></div> ---- <div id="4SpaceContent" align="left"><div class="ZEditBox" align=...")
 
 
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<div id="16SpaceContent" align="left"><div class="ZEditBox" align="justify">
+
<div style="font-size:30px">'''OR () '''</div><br/>
 +
*Parameters are logical values or conditions to be tested.
 +
**OR(), returns TRUE if any argument is TRUE.
  
Syntax
+
== Description ==
  
</div></div>
+
OR()
----
 
<div id="4SpaceContent" align="left"><div class="ZEditBox" align="justify">
 
  
Remarks
+
For Example,
  
</div></div>
+
OR(TRUE,FALSE) ''returns TRUE''
----
 
<div id="2SpaceContent" align="left"><div class="ZEditBox" align="justify">
 
  
Examples
+
OR(2+3<4,4+1<5) ''returns FALSE''
  
</div></div>
+
OR(1,0,1) ''returns TRUE''
----
 
<div id="8SpaceContent" align="left"><div class="ZEditBox" align="justify">'''<font face="Times New Roman">''''''''''''<font size="6"> </font>''' '''''''''</font>'''</div></div>
 
----
 
<div id="11SpaceContent" align="left"><div class="ZEditBox mceEditable" align="justify">
 
  
<font size="5">Description</font>
+
*This function displays the output as TRUE or FALSE.
 +
*First parameter is required. From second parameter is optional.
 +
*The conditions mentioned as arguments should evaluate as TRUE(logical 1) or FALSE(logical 0). Else Calci displays an #NULL error message.
 +
*If any one argument is TRUE, calci returns TRUE as output.
 +
*If argument or reference contains text or empty cells, they are ignored.
 +
*If specified range does not contain any logical value, Calci displays an #NULL error message.
  
</div></div>
+
== Examples ==
----
 
<div id="10SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">'''<font face="Times New Roman"> <font size="6">OR</font> </font>'''</div></div>
 
----
 
<div id="3SpaceContent" class="zcontent" align="left"><br /><div id="7Space" class="gamizbox" title="7Space"><div id="7SpaceHeader" class="zheaderstyle" title="Double-click to start and stop editing the header."><center></center></div><div id="7SpaceRollup" title="Double-click to rolldown" align="left"><span><span id="7SpaceRollupContent" align="center"></span></span></div><div id="7SpaceCover"><div id="7SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify"><font size="3" face="Times New Roman"> </font>
 
  
'''OR''' ('''L1, L2 …)'''
+
<div id="6SpaceContent" class="zcontent" align="left">
  
Where Li, L2….are positive integers.
 
 
</div></div>
 
----
 
<div id="13SpaceContent" class="zcontent" align="left"><br /><br /><div id="1Space" class="gamizbox" title="1Space"><div id="1SpaceHeader" class="zheaderstyle" title="Double-click to start and stop editing the header."><center></center></div><div id="1SpaceRollup" title="Double-click to rolldown" align="left"><span><span id="1SpaceRollupContent" align="center"></span></span></div><div id="1SpaceCover"><div id="1SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">The arguments must evaluate to 1 or 0.  Here 1 is for TRUE and 0 is for FALSE.</div></div>
 
----
 
<div id="14SpaceContent" class="zcontent" align="left"><br /><br /><br /><div id="5Space" class="gamizbox" title="5Space"><div id="5SpaceHeader" class="zheaderstyle" title="Double-click to start and stop editing the header."><center></center></div><div id="5SpaceRollup" title="Double-click to rolldown" align="left"><span><span id="5SpaceRollupContent" align="center"></span></span></div><div id="5SpaceCover"><div id="5SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">OR function calculates as 1 when the argument is TRUE and as 0 when the argument is FALSE. </div></div>
 
----
 
<div id="12SpaceContent" class="zcontent" align="left"><br /><br /><br /><div id="9Space" class="gamizbox" title="9Space"><div id="9SpaceHeader" class="zheaderstyle" title="Double-click to start and stop editing the header."><center></center></div><div id="9SpaceRollup" title="Double-click to rolldown" align="left"><span><span id="9SpaceRollupContent" align="center"></span></span></div><div id="9SpaceCover"><div id="9SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify"><font size="3"><font face="Times New Roman"> 
 
 
Lets see an example in (Column1 Row 1)
 
 
OR (L1, L2….)
 
 
<nowiki>=OR (0) is 0 that is FALSE and </nowiki>=OR (1, 0, 1) is 1
 
 
</font></font></div></div>
 
----
 
 
<div id="6SpaceContent" class="zcontent" align="left">
 
<div id="6SpaceContent" class="zcontent" align="left">
  
 
{| id="TABLE3" class="SpreadSheet blue"
 
{| id="TABLE3" class="SpreadSheet blue"
 
|- class="even"
 
|- class="even"
| class="  " |
+
| class="sshl_f" | 30
<div id="6Space_Copy" title="Click and Drag over to AutoFill other cells."></div>
+
| class="sshl_f" |  
| Column1
 
| class="  " | Column2
 
| class="  " | Column3
 
| class="  " | Column4
 
|- class="odd"
 
| class=" " | Row1
 
| class="sshl_f" | 0
 
| class="sshl_f" | 1
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|- class="even"
 
| class="  " | Row2
 
| class="sshl_f" |
 
| class="sshl_f SelectTD SelectTD" |
 
<div id="6Space_Handle" title="Click and Drag to resize CALCI Column/Row/Cell. It is EZ!"></div><div id="6Space_Copy" title="Click and Drag over to AutoFill other cells."></div>
 
| class="sshl_f" |
 
 
| class="sshl_f" |
 
| class="sshl_f" |
 +
 
|- class="odd"
 
|- class="odd"
| Row3
+
| class="sshl_f" |  
| class="sshl_f" |
+
| class="sshl_f" | 50
| class="sshl_f" |
 
| class="sshl_f" |
 
 
| class="sshl_f" |
 
| class="sshl_f" |
 +
 
|- class="even"
 
|- class="even"
| Row4
+
| class="sshl_f" | 13
| class="sshl_f" |
 
| class="sshl_f" |
 
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 +
 
|- class="odd"
 
|- class="odd"
| class=" " | Row5
+
| class="sshl_f" | 20
| class="sshl_f" |
+
| class="sshl_f" | TEXT
| class="sshl_f" |
 
| class="sshl_f" |
 
 
| class="sshl_f" |
 
| class="sshl_f" |
 +
 
|- class="even"
 
|- class="even"
| Row6
+
| class="sshl_f" | FALSE
| class="sshl_f" |
 
| class="sshl_f" |
 
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|}
 
|}
  
<div align="left">[[Image:calci1.gif]]</div></div>
+
=OR(A1=30) :Evaluates the condition for cell A1. Returns ''TRUE'' as an output.
----
+
=OR(A1-30=0,A1>40) :Returns ''TRUE'' as first condition is TRUE.
</div></div></div></div></div></div></div></div></div></div></div></div>
+
=OR(2*B2=50) :Returns ''FALSE'' as an output.
 +
=OR(a+b=c,d+e=f) :Returns ''#NULL'' error as both arguments do not evaluate as logical values.
 +
=OR(B3,B4) : Returns ''FALSE'' as an output.
 +
 
 +
==Related Videos==
 +
 
 +
{{#ev:youtube|UpB-oCsnPeM|280|center|OR}}
 +
 
 +
==See Also==
 +
 
 +
*[[Manuals/calci/NOT | NOT]]
 +
*[[Manuals/calci/AND  | AND]]
 +
*[[Manuals/calci/TRUE | TRUE]]
 +
*[[Manuals/calci/FALSE | FALSE]]
 +
 
 +
==References==
 +
*[http://en.wikipedia.org/wiki/Bitwise_operation  Bitwise Operation]
 +
 
 +
 
 +
 
 +
*[[Z_API_Functions | List of Main Z Functions]]
 +
 
 +
*[[ Z3 |  Z3 home ]]

Latest revision as of 13:43, 24 August 2018

OR ()


  • Parameters are logical values or conditions to be tested.
    • OR(), returns TRUE if any argument is TRUE.

Description

OR()

For Example,

OR(TRUE,FALSE) returns TRUE

OR(2+3<4,4+1<5) returns FALSE

OR(1,0,1) returns TRUE

  • This function displays the output as TRUE or FALSE.
  • First parameter is required. From second parameter is optional.
  • The conditions mentioned as arguments should evaluate as TRUE(logical 1) or FALSE(logical 0). Else Calci displays an #NULL error message.
  • If any one argument is TRUE, calci returns TRUE as output.
  • If argument or reference contains text or empty cells, they are ignored.
  • If specified range does not contain any logical value, Calci displays an #NULL error message.

Examples

30
50
13
20 TEXT
FALSE
=OR(A1=30) :Evaluates the condition for cell A1. Returns TRUE as an output.
=OR(A1-30=0,A1>40) :Returns TRUE as first condition is TRUE.
=OR(2*B2=50) :Returns FALSE as an output.
=OR(a+b=c,d+e=f) :Returns #NULL error as both arguments do not evaluate as logical values.
=OR(B3,B4) : Returns FALSE as an output.

Related Videos

OR

See Also

References