Navigation:  Macros > Macro Language > Operators >


Previous pageReturn to chapter overviewNext page

The and operator takes 2 boolean expressions and returns true if both expressions are true and returns false if either expression is false.


bIsOver35 = (nAge >= 35)

bCanBeUSPresident = bWasBornInUS and bIsOver35


You can use the or operator in more complex expressions :


bIsLeapYearDay = (DayOf(nDate) = 29) and (MonthOf(nDate) = 2)

Topic 122000 updated on 01-Oct-01.
Topic URL: