Boolean Operators
Posted by Gizmosis350k
Last Updated: March 26, 2012
  1656

[Binary]
var1 = var2== var3 - var1 is assigned the value "true" if var2 is equal to var3, or "false" otherwise.

var1 = var2 ! = var3 - var1 is assigned the value "true" if var2 is not equal to var3, or "false" otherwise.

var1 = var2 < var3 - var1 is assigned the value "true" if var2 is less than var3, or "false" otherwise.

var1 = var2 > var3 - var1 is assigned the value "true" if var2 is greater than var3, or false otherwise.

var1 = var2 <= var3; - var1 is assigned the value "true" if var2 is less than or equal to var3, or "false" otherwise.

var1 = var2 => var2; - var1 is assigned the value "true" is var2 is greater than or equal to var3, or "false" otherwise.


var1 = ! var2; - var1 is assigned the value "true" if var2 is "false", or "false" if var2 is "true". (Unary) (Logical NOT)

var1 = var2 & var3;  - var1 is assigned the value "true" if var2 and var3 are both "true", or "false" otherwise. (Binary) (Logical AND)

var1 = var2 | var3; - var1 is assigned the value "true" if either var2 or var3 (or both) is "true", or "false" otherwise. (Binary) (Logical OR)

var1 = var2 ^ var3; -  var1 is assigned the value "true" if either var2 or var3, but not both, is "true", or "false" otherwise. (Logical XOR or exclusive OR)

var1 = var2 && var3; - var1 is assigned the value "true" if var2 and var3 or both "true", or "false" otherwise. (Logical AND)

var1 = var2 || var3; - var1 is assigned the value "true" if either var2 or var3 (or both) is "true", or "false" otherwise. (Logical OR)



So much to memorize...(even tho i dont think i'll perform so much algebra in my practical applications)
   
  
 
 
   

 
 
Great!
 
yeah its a lot to take in lol
 
still caan fully grasp this but it's awesome
 
just keep practicing my friend!!!!