When someone asks for a cable, the next action depends on whether a spare is available. Put that question and both outcomes in a small Mermaid diagram.

Give each answer its own labeled arrow

```mermaid
flowchart TD
  A{Is a spare cable available?}
  A -->|Yes| B[Lend a spare cable]
  A -->|No| C[Log the request]
```

A decision diamond asks whether a spare cable is available.

Illustrated Mermaid decision. Put the question in braces and label both arrows.

Trace one request through each branch

Render the note in a Mermaid-compatible preview. With a spare in the drawer, Yes should end at Lend a spare cable. With an empty drawer, No should end at Log the request. Repeat those outcomes in a sentence below the diagram for readers who see only the Markdown source.

The Yes path ends at Lend a spare cable, and No ends at Log the request.

Illustrated branch test. Check one example for each answer.

Mermaid’s flowchart syntax