Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FiveWin 1.9.2 - January 97 - nor() generates a numeric or value from some numbers http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 nOr()                  Generates a numeric OR value from some numbers
--------------------------------------------------------------------------------

   Syntax:              nOr( <nValue1>, <nValue2> [,...<nValueN>] )
                            --> <nResult>

   Parameters:

   <nValue1>            A numeric value to be bit-ORed with other
                        numeric values.

   <nValue2>            More numeric values to be bit-ORed.
   <nValueN>

   Returns:

   <nResult>            A numeric value as result of bit-ORed
                        all the numeric values supplied as parameters.

   Observations:        Just a gentle reminder:

                        1 OR 1 = 1
                        1 OR 0 = 1
                        0 OR 1 = 1
                        0 OR 0 = 0

                        This is applicable to each bits in those
                        numeric values

   Sample:              MsgInfo( nOr( 15, 2 ) )  // it will return 15

                        // 15 = '00001111'
                        //  2 = '00000010'
                        //================
                        // 15 = '00001111'

   Source code:         SOURCE\\FUNCTION\\Or.c

   See also:            nAnd() lAnd()


Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson