If condition

1. Arjun Guest

## If condition

How to use a NOT condition in a "IF" statement?

2. Member
Join Date
Dec 1969
Posts
69

## RE: If condition

If A &#060;&#062; B Then<BR><BR><BR>Above says A is NOT Equal to B<BR><BR>Does This answer your question

3. Arjun Guest

## RE: If condition

Thanx a pile!!...I got the code working now......:)

4. Darren Neimke Guest

## RE: If condition

&lt;%<BR><BR>Dim aString, bString<BR>Dim aBool, bBool<BR>Dim aInt, bInt<BR><BR>aString = "hello world"<BR>bString = "hello world "<BR>aBool = True<BR>bBool = False<BR>aInt = 1<BR>bInt = 2<BR><BR>If Not StrComp(aString, bString) = 0 Then<BR> Response.Write "Strings are different.&#060;BR /&#062;"<BR>Else<BR> Response.Write "Strings are same.&#060;BR /&#062;"<BR>End If<BR><BR>If Not aBool EQV bBool Then<BR> Response.Write "Booleans are different.&#060;BR /&#062;"<BR>Else<BR> Response.Write "Booleans are same.&#060;BR /&#062;"<BR>End If<BR><BR>If Not aInt = bInt Then<BR> Response.Write "Integers are different.&#060;BR /&#062;"<BR>Else<BR> Response.Write "Integers are same.&#060;BR /&#062;"<BR>End If<BR><BR>%&gt;

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•