[ First ] [ Previous ] [ Next ] [ Last ] [ Manuals ]
Example Expressions

The list below provides example expressions that you can use in any window that supports expressions.
or
   (*myRectPtr).bottom
The value of a class member in an object:
   myDrawing::theRect
Below are examples of logical expressions: the result is considered true if non-zero, false if zero.
Is the value of a variable false?
   !isDone
or
   isDone == 0
Is the value of a variable true?
   isReady
or
   isReady != 0
Is one variable greater than or equal to another?
   foo >= bar
Is one variable less than both of two others?
   (foo < bar) && (foo < car)
Is the fourth bit in a character value set to 1?
   ((char)foo >> 3) & 0x01
Is a C string variable equal to a literal string?
   cstr == "Nov shmoz ka pop"
Is a Pascal string variable equal to a literal string?
   pstr == "\pScram gravy ain't wavy"
Always true:
   1
Always false:
   0
[ First ] [ Previous ] [ Next ] [ Last ] [ Manuals ]
Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.
Last updated: August 17, 2000