VB icon

Nor Operator "One liners"

Email
Submitted on: 8/7/2018 2:54:51 AM
By: Nicholas Forystek  
Level: Intermediate
User Rating: Unrated
Compatibility: VB 6.0
Views: 691
author picture
 
     Simply as it is said, the NOR operator! Another part of my "one liner" code collection. This is one line of code made into a easy function to have the interpolation of the NOR operator by arithmetic/object/variable/expression means, thus by any means! Should anyone know a possible way to help make this act in the the environment as a operator in the textual code pane via an add-in capability please let me know! I really want this one colored as a statement to use just like XOR.
 
code:
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
				
'**************************************
' Name: Nor Operator "One liners"
' Description:Simply as it is said, the NOR operator! Another part of my "one liner" code collection. This is one line of code made into a easy function to have the interpolation of the NOR operator by arithmetic/object/variable/expression means, thus by any means! Should anyone know a possible way to help make this act in the the environment as a operator in the textual code pane via an add-in capability please let me know! I really want this one colored as a statement to use just like XOR.
' By: Nicholas Forystek
'**************************************

Public Function Nor(exp1, exp2)
Nor = (((((Not exp1) Or (Not exp1)) = ((Not -exp2) And (Not -exp2)))) And ((((Not exp1) And (Not exp1)) = ((Not -exp2) Or (Not -exp2)))))
End Function


Other 19 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments


 There are no comments on this submission.
 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.