Navigation:  MCL Reference > Miscellaneous Functions >

Iif( )

Print this Topic Previous pageReturn to chapter overviewNext page

This is a Visual FoxPro function. It allows you to put equivalent of an IF..ELSE..ENDIF of common programming languages in an MCL formula.

 

Syntax

Iif(lCondition,eThenResult,eElseResult)

 

Argument

Value

Meaning

lCondition

.T.

Returns the value of eThenResult

.F. or .NULL.

Returns the value of eElseResult

eThenResult

Any valid expression

If lCondition is true, returns the value of this expression

eElseResult

Any valid expression

If lCondition is false, returns the value of this expression

 

 


Page url: http://www.racematenet.com/english/help/index.html?iif.htm