hello
use <>
Conditional Operators
Conditional expressions are set up using relational operators to compare values. These operators, which were presented earlier, are repeated in the following table.
| Operator |
Use |
| = |
Tests whether two values are equal. |
| <> |
Tests whether two values are not equal. |
| < |
Tests whether the first value is less than the second value. |
| > |
Tests whether the first value is greater than the second value. |
| <= |
Tests whether the first value is less than or equal to the second value. |
| >= |
Tests whether the first value is greater than or equal to the second value. |
Logical Operators
Sometimes you need to combine condition tests. For instance, you might need to know if a numeric value is within a particular range; that is, whether the number is greater than one value and less than another value. Or, you might want to see if the number is outside a range by testing whether it is less than one value or greater than a second value. These kinds of combination tests are made possible by using two or more relational tests combined with the logical operators And, Or, and Not to form multiple comparisons. These operators were presented earlier and are repeated in the following table.
Logical Operator |
Comparison |
| And |
condition1 And condition2 The condition1 and condition2 tests both must be true for the expression to be evaluated as True. |
| Or |
condition1 Or condition2 Either the condition1 or condition2 test must be true for the expression to be evaluated as True. |
| Not |
Not condition The expression result is set to its opposite; a True condition is set to False and a False condition is set to True. |
| Xor |
condition1 Xor condition2 Either condition1 is true or condition2 is true, but not both, for the condition test to be evaluated as True. |
u can use this also
if Not textname.Text = "" then