Home : IF
Q11537 - INFO: IF

IF (Primitive Spread Function) returns a value based on a logical value.

SYNTAX:

IF(value1,value2,value3)

REMARKS:

value1 must be or evaluate to numeric data, where nonzero values indicate True, and a value of zero indicates False. If value1 is nonzero (or True), then value2 is returned. If value1 is zero (or False), then value3 is returned. value1 can contain one of the relational operators: greater than (>), less than (<), equal to (=), or not equal to (<>). 

EXAMPLES:

IF(A3<>2000,1900,2000)
IF(C4,B2,B4)
IF(1>2,5,10)=10
IF(1<2,"dogs","cats") equals dogs

SEE ALSO: Case Spread Function

Related Articles
Q11506 - INFO: AND
Q11532 - INFO: FALSE
Q11565 - INFO: NOT
Q11570 - INFO: OR
Q11610 - INFO: TRUE

Article Attachments
No Attachments Available.

Related External Links
No Related Links Available.
Help us improve this article...
What did you think of this article?

poor 
1
2
3
4
5
6
7
8
9
10

 excellent
Tell us why you rated the content this way. (optional)
 
Approved Comments...
No user comments available for this article.
Created on 8/26/2008 11:51 AM.
Last Modified on 3/1/2018 11:30 AM.
Last Modified by Scott Dorner.
Article has been viewed 3412 times.
Rated 1 out of 10 based on 1 vote.
Print Article
Email Article