[NOT] IN
Welcome to our Knowledge Base
Documentation | Blog | Demos | Support
< All Topics
Print
[NOT] IN
0 out of 5 stars
5 Stars | 0% | |
4 Stars | 0% | |
3 Stars | 0% | |
2 Stars | 0% | |
1 Stars | 0% |
Compares one value to a list of values.
Syntax
expression [NOT] IN («expr»)
Parameters
expression | An expression that evaluates to either a number or a character string. |
expr | A list of expressions whose values are to be compared to expression. Members of the list are separated from one another by commas. |
Return Value
Logical
Comments
An IN comparison is logically true if expression is equal to at least one of the values in the specified list.
A NOT IN comparison is logically true if expression is not equal to any of the values in the specified list.
In either case, the comparison ends as soon as a logically true instance is found.
Example
The conditional expression that follows is logically true if the value of AirPollutants matches any of CFC, CO, or NOX.
AirPollutants in (" CFC","CO"," NOX")
The conditional expression that follows is logically true if the value obtained from either TicketAmt*5 or Receipts*10 equals 10,000.
10000 in ( TicketAmt * 5,Receipts * 10)
See Also
Updated
ByJason Lee
Was this article helpful?
0 out of 5 stars
5 Stars | 0% | |
4 Stars | 0% | |
3 Stars | 0% | |
2 Stars | 0% | |
1 Stars | 0% |
5