[thelist] Classic ASP: Someone else's code

Robert Vreeland vreeland at studioframework.com
Tue Nov 22 12:25:27 CST 2005

They are testing for empty or non-existing values, in english:
You could rewirte it like so:
cFirst = ""
cFirst = cFirst & trim(Contact_First_x)
cLast = ""
cLast = cLast & trim(Contact_Last_x)
If NOT cFirst = "" AND NOT cLast = "" Then
	'do some stuff here
	'either first name or last name was empty
	'do something else
End If

Hope this helps

-----Original Message-----
From: thelist-bounces at lists.evolt.org
[mailto:thelist-bounces at lists.evolt.org] On Behalf Of Casey
Sent: Tuesday, November 22, 2005 12:48 PM
To: The List
Subject: [thelist] Classic ASP: Someone else's code

What exactly is going on here:

if trim(Contact_First_x) & "" <> "" AND trim(Contact_Last_x) & "" <> "" then

In case it's not clear in the email:  "" <> ""  which is: double-quote
double-quote <> double-quote double-quote

I'm not at all understanding the logic of this statement.... anyone?



* * Please support the community that supports you.  * *

For unsubscribe and other options, including the Tip Harvester and archives
of thelist go to: http://lists.evolt.org Workers of the Web, evolt ! 

More information about the thelist mailing list