Difference between revisions of "Manuals/calci/NOT"

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=...")
 
 
(7 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">'''NOT (Logic)'''</div><br/>
 +
*where <math>Logic</math> is a logical value or expression to be evaluated.
 +
**NOT(), reverses the logic of its argument.
  
Syntax
+
== Description ==
  
</div></div>
+
NOT (Logic)
----
 
<div id="4SpaceContent" align="left"><div class="ZEditBox" align="justify">
 
  
Remarks
+
For Example,
  
</div></div>
+
NOT(TRUE) ''returns FALSE''
----
 
<div id="2SpaceContent" align="left"><div class="ZEditBox" align="justify">
 
  
Examples
+
NOT(2+3<4) ''returns TRUE''
  
</div></div>
+
*This function displays the output as TRUE or FALSE.
----
+
*<math>Logic</math> can be a value or expression that evaluates as TRUE(logical 1) or FALSE(logical 0).
<div id="8SpaceContent" align="left"><div class="ZEditBox" align="justify">'''<font face="Times New Roman">''''''''''''<font size="6"> </font>''' '''''''''</font>'''</div></div>
+
*If <math>Logic</math> evaluates TRUE(or 1), calci returns reverse output as FALSE.
----
+
*If <math>Logic</math> evaluates FALSE(or 0), calci returns reverse output as TRUE.
<div id="11SpaceContent" align="left"><div class="ZEditBox mceEditable" align="justify">
+
*If <math>Logic</math> &gt; 0, Calci assumes it to be one (1) and returns FALSE as output.
 +
*If argument is omitted, Calci assumes it to be zero (0) and returns TRUE as output.
  
<font size="5">Description</font>
+
== Examples ==
  
</div></div>
+
<div id="6SpaceContent" class="zcontent" align="left">
----
+
 
<div id="10SpaceContent" class="zcontent" align="left"><div class="ZEditBox" align="justify">'''<font face="Times New Roman"> <font size="6">NOT</font> </font>'''</div></div>
+
{| id="TABLE3" class="SpreadSheet blue"
----
+
|- class="even"
<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>
+
| class=" " | '''Function'''
 +
| class=" " | '''Output'''
  
'''NOT''' ('''L''')
+
|- class="odd"
 +
| class="sshl_f" |NOT(FALSE)
 +
| class="sshl_f" |TRUE
 +
 
 +
|- class="even"
 +
| class="sshl_f" |NOT(1)
 +
| class="sshl_f" |FALSE
 +
 
 +
|- class="odd"
 +
| class="sshl_f" |NOT()
 +
| class="sshl_f" |TRUE
 +
 
 +
|- class="even"
 +
| class="sshl_f" |NOT((2*3)>(3*2))
 +
| class="sshl_f" |TRUE
 +
|}
  
'''Where L''' is a value which can be evaluated to TRUE (1) or FALSE (0).
+
==Related Videos==
  
</div></div>
+
{{#ev:youtube|t8zhPx4kbkE|280|center|NOT}}
----
 
<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">If logical value is1(TRUE), then NOT value is zero (0) and if it is 0(FALSE), then NOT value is 1</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"><font size="3"><font face="Times New Roman"> 
 
  
This function is to reverses the value of its argument. NOT is used to make sure for a value which is not equal to one particular value
+
==See Also==
  
</font></font></div></div>
+
*[[Manuals/calci/OR | OR]]
----
+
*[[Manuals/calci/AND  | AND]]
<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
+
==References==
 +
*[http://en.wikipedia.org/wiki/Bitwise_operation  Bitwise Operation]
  
NOT (L)
 
  
<nowiki>=NOT (1) is 0 that is FALSE</nowiki>
 
  
</font></font></div></div>
 
----
 
<div id="6SpaceContent" class="zcontent" align="left">
 
  
{| id="TABLE3" class="SpreadSheet blue"
+
*[[Z_API_Functions | List of Main Z Functions]]
|- class="even"
 
| class="  " |
 
<div id="6Space_Copy" title="Click and Drag over to AutoFill other cells."></div>
 
| 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 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  " |
 
<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="odd"
 
| Row3
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|- class="even"
 
| Row4
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|- class="odd"
 
| class=" " | Row5
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|- class="even"
 
| Row6
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
| class="sshl_f" |
 
|}
 
  
<div align="left">[[Image:calci1.gif]]</div></div>
+
*[[ Z3 |  Z3 home ]]
----
 
</div></div></div></div></div></div></div></div></div></div></div></div>
 

Latest revision as of 13:43, 24 August 2018

NOT (Logic)


  • where is a logical value or expression to be evaluated.
    • NOT(), reverses the logic of its argument.

Description

NOT (Logic)

For Example,

NOT(TRUE) returns FALSE

NOT(2+3<4) returns TRUE

  • This function displays the output as TRUE or FALSE.
  • can be a value or expression that evaluates as TRUE(logical 1) or FALSE(logical 0).
  • If evaluates TRUE(or 1), calci returns reverse output as FALSE.
  • If evaluates FALSE(or 0), calci returns reverse output as TRUE.
  • If > 0, Calci assumes it to be one (1) and returns FALSE as output.
  • If argument is omitted, Calci assumes it to be zero (0) and returns TRUE as output.

Examples

Function Output
NOT(FALSE) TRUE
NOT(1) FALSE
NOT() TRUE
NOT((2*3)>(3*2)) TRUE

Related Videos

NOT

See Also

References