Re: If( ) multiple conditions

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Miha Markic [MVP C#] (miha)
Date: 03/21/04


Date: Sun, 21 Mar 2004 19:25:34 +0100

Hi Andrew,

&& performs a shortcut and operator

-- 
Miha Markic [MVP C#] - RightHand .NET consulting & development
miha at rthand com
www.rthand.com
"Andrew Banks" <banksy@nojunkblueyonder.co.uk> wrote in message
news:TWk7c.22418$qi6.481283204@news-text.cableinet.net...
> How can I tst for multiple conditions in C#?
>
> I'm currently testing for !Page.IsPostBack and also want to test a URL
> parameter. I'm not quite sure how to construct this.
>
> if(!Page.IsPostBack AND Request.QueryString["Refreshed"].ToString()=="1")
> {
>     do something
> }
>
>


Relevant Pages

  • Re: If( ) multiple conditions
    ... miha at rthand com ... "Andrew Banks" wrote in message ... > How can I tst for multiple conditions in C#? ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: If( ) multiple conditions
    ... > How can I tst for multiple conditions in C#? ... '&&' does short-circuit AND evaluation, which means if the page is posted ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: If( ) multiple conditions
    ... > How can I tst for multiple conditions in C#? ... '&&' does short-circuit AND evaluation, which means if the page is posted ...
    (microsoft.public.dotnet.languages.csharp)