short-circuit evaluation in if?
i could not find it in the documentation (<https://cmake.org/cmake/help/latest/command/if.html>), but it would seem that conditions do not short-circuit.

is that correct?

if(defined my\_var and ${my\_var} strequal "true")

the command above returns:

cmake error at cmakelists.txt:23 (if):

if given a…
you can simply write (i.e. do not expand the variable):

if (my\_var strequal "true")

in this case, a non-existing variable will evaluate to false (boolean value as defined by cmake).

and, in the case of expected value is a true value as defined by cmake:

if (my\_var)
Your test is redundant, since you are already querying only for matching records. In this case, you will get no rows if there is no match, therefore you will never hit the else clause in the loop.  

  

Instead, it is enough to check if there are any matching records at all. The example below shows how (note that you can put a condition straight into Any() instead of specifying Where()).  

  

C#Copy Code

```
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
 
namespace CustomerMaster
{
    public partial class CustomerMaster : System.Web.UI.Page
    {
 
        private void AddData()
        {
            
            OperationsDataContext AddDb = new OperationsDataContext();
            CustomerMast cm = new CustomerMast();
            
                        
            cm.CustomerCode = txtCustCde.Text;
            cm.CustomerName = txtCustName.Text;
            cm.CustomerAddress = txtCustAdd.Text;
            cm.BrkrCode = txtBrkCode.Text;
            cm.BrokerName = txtBrkName.Text.
            cm.CrrCode = txtCrrCode.CarrierCode;
            cm.CarrierName =  txtCrrName.Text;
            cm.StnCode=sm.StationCode;
            cm.StationName = txtStnName.Text;
            cm.VatNo=txtVatNo.Text;
            cm.TinNo=txtTinNo.Text;
            cm.TMCO=txtTMCONo.Text;
            cm.PanNo = txtPAN.Text;
			
	    if(AddDb.CustomerMasts.Any(c=>c.CustomerCode == txtCustCde.Text))
            {
	        Response.Write("Error! CustomerCode Exits");
	    }
	    else
	    {
                AddDb.BrokerMasts.InsertOnSubmit(bm);
                AddDb.CarrierMasts.InsertOnSubmit(crm);
                AddDb.StationMasts.InsertOnSubmit(sm);
                AddDb.CustomerMasts.InsertOnSubmit(cm);

	        AddDb.SubmitChanges();
            }         
        }
 
        protected void btnAdd\_Click(object sender, EventArgs e)
        {
            AddData();
        }
    }
}
``` hi there,

i am making some assumptions about the requirements of your experiment here but lets see if this helps.

short break

would you like the short break to be at the start of each trial ? i.e. the inter-trial-interval? if so try the following:

add a code component to your “trial” routine (c… isn't this a case of incomplete requirements? if you're a first year analyst, then my answer is no && is a short circuit operator in java, which means that once it evaluates the left expression as false - it no longer evaluates the right expression.   

in our case, in the equals method evaluates 

```

obj instanceof person 
```
 to **true**; 

```

this.age == ((person)obj).age 
```
 to **false**; the next expression, 
```

this.name.equals(((person)obj).name);
```
 is not evaluated at all, and the method returns **false**.   

changing the && operator to || or & would result in a java.lang.nullpointerexception if statements always check if an expression evaluates to the value of true. since you’re checking whether the value true  value true then it’ll run every time. as for the “purpose” of the if statement, it’s here to create a “block scope” within the “function scope”.

interestingly, if you remove … > if( !@include( $path ) ) {
> 
> 


That part of the syntax is totally wrong. I don't think that an include is not meant to be in an if statement. Also replace the include with the require function which does the same thing but with error reporting. Also I would advice removing those @ symbols. So the above quote should be the following:



```
if(file_exists($path)) {
require( $path );
} else {
``` Hello,

 

 

We would like to inform you that decoding MCE errors is out of the scope of support for us. As a general recommendation based on the wording for the log, please check the memory modules installed and confirm if one of them has failed.
 
 
 
 
 
 
 
 
 

[View solution in original post](/t5/Server-Products/How-to-decode-MCE-errors/m-p/527769#M13599) What is Delayed Branching ?
  

One way to maximize the use of the pipeline, is to find an instruction that can be safely exeucted whether the branch is taken or not, and execute that instruction. So, when a branch instruction is encountered, the hardware puts the instruction following the branch into the pipe and begins executing it, just as in predict-not-taken. However, unlike in predict-not-taken, we do not need to worry about whether the branch is taken or not, we do not need to clear the pipe because no matter whether the branch is taken or not, we know the instruction is safe to execute.
  

More Read : <https://www.cs.umd.edu/class/fall2001/cmsc411/projects/branches/delay.html>
  

Moving $I\_1$ after branch


* $I1$ is updating the value of  $R2$
* $R2$ which is used to determine branch condition $R1$
* Value of $R2$ is available after branch
  

$\Rightarrow$ `Cannot be moved`


Moving $I\_3$ after branch


* value of $R1$ is computed in this instruction
* $R1$ is the branch condition
  

$\Rightarrow$ `Cannot be moved`


Moving $I\_4$ after branch


* $I4$ is simple store instruction used to store R1 in memory
* program execution will have no effect if this is placed after conditional branch
  

$\Rightarrow$ `Can be moved`


Moving $I\_2$ after branch


* It update the memory location to place the storing of conditional branch instruction $R1$
* If moved after branch , when compiler reaches $I4$ program execution will stop
  

$\Rightarrow $ `Cannot be moved`


Hence, **option D is answer.** no i can’t, but you can look up the solution on the [hints page](http://forum.freecodecamp.org/t/freecodecamp-challenge-guide-profile-lookup/18259) if you’re ready to give up.

all you need to change is the placement of this line:

return "no such contact"

right now it’s inside the for loop (before the closing }), it needs to be outside the for loop (after the closing }) >>when I compile, there are no errors,  

Ditch the compiler and use a different one. There is a link error.



>>void print ()



Wrong. should be `void testClass::print ()`