IF..ELSE syntax

IF x > y
* Your code come hereELSE
* Your code come here
ENDIF


Another form of IF..ELSE statement in Visual Foxpro is the IIF (,,) function. The first parameter is the expression you want to evaluate, the second parameter is the code to execute if the first parameter is true. The third parameter will be executed if the first parameter is evaluated as false.IIF (x > y, x=1, y=1)