! (Logical Not) (SSIS Expressions)
SQL Server 2008
Negates a Boolean operand.
Note |
|---|
The ! operator cannot be used in conjunction with other operators. For example, you cannot combine the ! and the > operators into the !>. operator. |
This example evaluates to FALSE if the Color column value is "red".
!(Color == "red")
This example evaluates to TRUE if the value of the MonthNumber variable is the same as the integer that represents the current month. For more information, see MONTH (SSIS Expressions) and GETDATE (SSIS Expressions).
!(@MonthNumber != MONTH(GETDATE())
Note