Please enable JavaScript to view this site.

R:BASE 11 Help

Navigation: Function Index > I

IFGT

Scroll Prev Top Next More

(IFGT(arg1,arg2,arg3,arg4))

 

If arg1 is greater than arg2, IFGT returns the value of arg3. If arg1 is less than arg2, IFGT returns the value of arg4. The data types of arg1 and arg2 must match and the data types of arg3 and arg4 must match.

 

In the following example, the value of vifgt is 4, because the date 1/1/96 is greater than the date 1/1/95.

 

SET VAR vifgt = (IFGT('1/1/96','1/1/95',4,5))