A Digital Age Deserves A Digital Leader

ASP Not Operator

ASP Not Operator

Postby gries818 » Thu Aug 14, 2008 2:51 pm

I'm programming in ASP and looking for a really handy feature that I've used in PHP before... the 'not' logical operator. In this case, I want to say that if a string is NOT equal to "" then do...

However ASP doesn't seem to like this. Any pointers?
Image

Mac OS 10.6.7 - Personal
Ubuntu Server 11.04 - Server
Software Development
User avatar
Posts: 3991
Joined: Wed Jul 07, 2004 6:28 pm

Postby gries818 » Thu Aug 14, 2008 8:15 pm

I solved the problem using 'isNum' instead of 'not'.
Image

Mac OS 10.6.7 - Personal
Ubuntu Server 11.04 - Server
Software Development
User avatar
Posts: 3991
Joined: Wed Jul 07, 2004 6:28 pm

Postby imnuts » Fri Aug 15, 2008 8:01 am

would "!=" work as well?
Image
PRO SUPREME
User avatar
Posts: 7457
Joined: Wed Mar 24, 2004 5:19 am
Location: Boothwyn, Pennsylvania
Real Name: Mark

Return to HTML, CSS, and Scripts

Who is online

Users browsing this forum: No registered users and 0 guests