> ## Documentation Index
> Fetch the complete documentation index at: https://docs.syntblaze.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Bash Conditional AND List

A conditional AND list is a sequence of one or more pipelines separated by the `&&` control operator. It enforces short-circuit left-to-right evaluation, where a subsequent command is executed if and only if the preceding command terminates with an exit status of zero (success).

**Syntax**

```bash theme={"dark"}
pipeline1 && pipeline2 [&& pipeline3 ...]
```

**Execution Mechanics**

1. The shell evaluates `pipeline1` and waits for it to terminate.
2. If `pipeline1` yields an exit status of `0`, the shell proceeds to evaluate `pipeline2`.
3. If `pipeline1` yields a non-zero exit status, the shell immediately aborts evaluation of the list. `pipeline2` and any subsequent pipelines are not executed.
4. This sequential evaluation continues until a pipeline returns a non-zero status or the end of the list is reached.

**Exit Status**
The overall exit status of an AND list is the exact exit status of the last command executed within that list.

* If the list short-circuits due to a failure, the exit status of the list is the non-zero value of the pipeline that failed.
* If the entire list executes successfully, the exit status of the list is `0` (the exit status of the final pipeline).

**Precedence and Associativity**
The `&&` control operator shares equal precedence with the conditional OR operator (`||`). When combined in a single compound list without explicit grouping, they are evaluated with strict left-to-right associativity. To alter the evaluation order, pipelines must be enclosed in grouping constructs, such as a subshell `( ... )` or a current-shell group `{ ...; }`.

```bash theme={"dark"}

# Left-to-right associativity
pipeline1 && pipeline2 || pipeline3


# Altered precedence using a current-shell group
pipeline1 && { pipeline2 || pipeline3; }
```

**Asynchronous Execution**
If an AND list is terminated by the asynchronous control operator `&`, the entire list is executed in the background as a single subshell process. The short-circuit logic remains intact within that background process.

```bash theme={"dark"}
pipeline1 && pipeline2 &
```

<div
  style={{ 
display: "flex", 
justifyContent: "space-between", 
alignItems: "center", 
maxWidth: "754px", 
padding: "1rem 0",
marginBottom: "24px"
}}
>
  <span style={{ fontWeight: "bold", fontSize: "1.25rem", color: "var(--tw-prose-headings)", fontFamily: "Inter, ui-sans-serif, system-ui, sans-serif" }}>Tired of Poor Bash Skills? Fix That With Deep Grasping!</span>

  <a
    href="https://syntblaze.com"
    target="_blank"
    style={{ 
  marginLeft: "24px",
  textDecoration: "none", 
  backgroundColor: "#007AFF",
  color: "#ffffff", 
  padding: "6px 16px", 
  borderRadius: "16px",
  fontSize: "0.9rem",
  fontWeight: "600",
  textAlign: "center",
  transition: "background-color 0.2s ease"
}}
  >
    Learn More
  </a>
</div>

<div style={{ display: "flex", gap: "12px", flexWrap: "wrap" }}>
  <img src="https://mintcdn.com/syntblazellc/-L0ums_2lctDSZ1l/images/skill-tracking.png?fit=max&auto=format&n=-L0ums_2lctDSZ1l&q=85&s=b9b0305c93bb501c9e767b5c76c88835" style={{ width: "30%", minWidth: 60 }} width="621" height="1344" data-path="images/skill-tracking.png" />

  <img src="https://mintcdn.com/syntblazellc/23tyuOzaWS88qFlc/images/nuggets.png?fit=max&auto=format&n=23tyuOzaWS88qFlc&q=85&s=c86c80197299762989e9b882419b2109" style={{ width: "30%", minWidth: 60 }} width="621" height="1344" data-path="images/nuggets.png" />

  <img src="https://mintcdn.com/syntblazellc/-L0ums_2lctDSZ1l/images/bite-sized-exercises.png?fit=max&auto=format&n=-L0ums_2lctDSZ1l&q=85&s=a65f9a38c37ff28ab73ed783c53c60e3" style={{ width: "30%", minWidth: 60 }} width="621" height="1344" data-path="images/bite-sized-exercises.png" />
</div>

<div style={{ display: "flex", gap: "12px", flexWrap: "wrap", marginTop: "12px" }}>
  <img src="https://mintcdn.com/syntblazellc/-L0ums_2lctDSZ1l/images/mastery-chain.png?fit=max&auto=format&n=-L0ums_2lctDSZ1l&q=85&s=748a1763454713e679260fbb95f154a2" style={{ width: "30%", minWidth: 60 }} width="621" height="1344" data-path="images/mastery-chain.png" />

  <img src="https://mintcdn.com/syntblazellc/-L0ums_2lctDSZ1l/images/element-previews.png?fit=max&auto=format&n=-L0ums_2lctDSZ1l&q=85&s=242f61448ff5dd6deaaab2dccc13b507" style={{ width: "30%", minWidth: 60 }} width="621" height="1344" data-path="images/element-previews.png" />

  <img src="https://mintcdn.com/syntblazellc/-L0ums_2lctDSZ1l/images/element-explanations.png?fit=max&auto=format&n=-L0ums_2lctDSZ1l&q=85&s=cf0fc1c31f9cd0fc26716781be05fbc9" style={{ width: "30%", minWidth: 60 }} width="621" height="1344" data-path="images/element-explanations.png" />
</div>
