Ask a Question related to ASP Database, Design and Development.
-
Terry Murray #1
Mutiple conditions in an if statement
This might seem like a silly question but how do you form an if statement
involving 2 conditions within ASP (VBScript)
I tried this with no luck:
if ((loggedIn = "False") and (CurrentPage != 3)) then
Any suggestions
Thanks
Terry
Terry Murray Guest
-
About mutiple Sliders
Hi everyone, I want your help............. what i want to do is that i have to take multiple vsliders i.e max =4 and i want to attach a hrule to... -
Mutiple Users
hello, Does anyone know if the dreamweaver login PHP scrips will support mutiple users. I seem to have developed an issue of login, things work... -
One Record Mutiple Cats
Hi there I am building a property database, The customer requires that a property can have mutiple types Can anyone tell me how I could achieve... -
Mutiple scanned pictures - need help please ...
I have been using PE-2 for some time, but can't calim to know it well (yet). If I scan, say, two photos at once (one next to the other) and want... -
select statement form mutiple data sources
Hello, I have information in a Access data base and a SQL database, but i need to be able to create a select statment which pulls information... -
Bob Barrows #2
Re: Mutiple conditions in an if statement
Terry Murray wrote:
That should have worked. What does "no luck" mean?> This might seem like a silly question but how do you form an if
> statement involving 2 conditions within ASP (VBScript)
>
> I tried this with no luck:
>
> if ((loggedIn = "False") and (CurrentPage != 3)) then
>
>
> Any suggestions
>
> Thanks
>
> Terry
Bob Barrows
Bob Barrows Guest
-
Ray at #3
Re: Mutiple conditions in an if statement
You're mixing VB Script and JScript. In VB Script, "not equal to" is <>.
If LoggedIn = "False" and CurrentPage <> 3 Then
But, you may have to take extra care with you variable types and even
shorten it:
If Not CBool(LoggedIn) And CInt(CurrentPage) <> 3 Then...
Ray at home
--
Will trade ASP help for SQL Server help
"Terry Murray" <tgmurray@rogers.com> wrote in message
news:o_AYa.76750$4UE.14262@news01.bloor.is.net.cab le.rogers.com...> This might seem like a silly question but how do you form an if statement
> involving 2 conditions within ASP (VBScript)
>
> I tried this with no luck:
>
> if ((loggedIn = "False") and (CurrentPage != 3)) then
>
>
> Any suggestions
>
> Thanks
>
> Terry
>
>
Ray at Guest
-
Bob Barrows #4
Re: Mutiple conditions in an if statement
Oh, duh! Can't believe i missed that. I've been staring at T-SQL code all
day today. It would have helped if the OP had told us the error message ...
ok, no excuses!
Bob
Ray at <%=sLocation%> wrote:> You're mixing VB Script and JScript. In VB Script, "not equal to" is
> <>.
>
> If LoggedIn = "False" and CurrentPage <> 3 Then
>
> But, you may have to take extra care with you variable types and even
> shorten it:
>
> If Not CBool(LoggedIn) And CInt(CurrentPage) <> 3 Then...
>
> Ray at home
>
>
> "Terry Murray" <tgmurray@rogers.com> wrote in message
> news:o_AYa.76750$4UE.14262@news01.bloor.is.net.cab le.rogers.com...>> This might seem like a silly question but how do you form an if
>> statement involving 2 conditions within ASP (VBScript)
>>
>> I tried this with no luck:
>>
>> if ((loggedIn = "False") and (CurrentPage != 3)) then
>>
>>
>> Any suggestions
>>
>> Thanks
>>
>> Terry
Bob Barrows Guest
-
Ray at #5
Re: Mutiple conditions in an if statement
You're falling apart Bob. ;P
Ray at home
--
Will trade ASP help for SQL Server help
"Bob Barrows" <reb_01501@yahoo.com> wrote in message
news:e4R0roTXDHA.2640@TK2MSFTNGP09.phx.gbl.......> Oh, duh! Can't believe i missed that. I've been staring at T-SQL code all
> day today. It would have helped if the OP had told us the error message> ok, no excuses!
>
> Bob
>
> Ray at <%=sLocation%> wrote:> > You're mixing VB Script and JScript. In VB Script, "not equal to" is
> > <>.
> >
> > If Logg
Ray at Guest
-
Bob Barrows #6
Re: Mutiple conditions in an if statement
Damn! Do you think anyone else noticed?
Bob
Ray at <%=sLocation%> wrote:> You're falling apart Bob. ;P
>
> Ray at home
>
>
> "Bob Barrows" <reb_01501@yahoo.com> wrote in message
> news:e4R0roTXDHA.2640@TK2MSFTNGP09.phx.gbl...>> Oh, duh! Can't believe i missed that. I've been staring at T-SQL
>> code all day today. It would have helped if the OP had told us the
>> error message ... ok, no excuses!
>>
>> Bob
>>
>> Ray at <%=sLocation%> wrote:>>> You're mixing VB Script and JScript. In VB Script, "not equal to"
>>> is <>.
>>>
>>> If Logg
Bob Barrows Guest



Reply With Quote

