# if-else icon

If else. Gentleface icon, drawn on the 16 px pixel grid. Free, MIT licensed. Page: https://gentleface.com/icons/if-else

- Category: Development
- Use it for: conditional, branching logic, if else
- Tags: if, else, condition, conditional, branch, logic, decision, flowchart, programming
- Component name: IfElseIcon
- Added: 2026-11-12

## Files

Each icon is drawn on the 16 px grid, and most also on the 20 and 24 px grids (at 24 in three weights: light 1 px, regular 1.5 px, bold 2 px). Show the drawing made for your size, or an exact multiple of it, on whole pixels: 16 for 16 and 32 px, 20 for 20 and 40, 24 for 24 and 48. A size in between or a fractional position blurs it. The code on each icon page is the 16 px drawing, an SVG with fill="currentColor"; the icon page's downloads follow its Grid switch, and npm has the 20 and 24 px drawings too.

- line-round: https://gentleface.com/svg/line-round/16/if-else.svg · PNG https://gentleface.com/png/line-round/16/if-else.png · https://gentleface.com/png/line-round/32/if-else.png · https://gentleface.com/png/line-round/48/if-else.png
- line-soft: https://gentleface.com/svg/line-soft/16/if-else.svg · PNG https://gentleface.com/png/line-soft/16/if-else.png · https://gentleface.com/png/line-soft/32/if-else.png · https://gentleface.com/png/line-soft/48/if-else.png
- line-sharp: https://gentleface.com/svg/line-sharp/16/if-else.svg · PNG https://gentleface.com/png/line-sharp/16/if-else.png · https://gentleface.com/png/line-sharp/32/if-else.png · https://gentleface.com/png/line-sharp/48/if-else.png
- solid-round: https://gentleface.com/svg/solid-round/16/if-else.svg · PNG https://gentleface.com/png/solid-round/16/if-else.png · https://gentleface.com/png/solid-round/32/if-else.png · https://gentleface.com/png/solid-round/48/if-else.png
- solid-soft: https://gentleface.com/svg/solid-soft/16/if-else.svg · PNG https://gentleface.com/png/solid-soft/16/if-else.png · https://gentleface.com/png/solid-soft/32/if-else.png · https://gentleface.com/png/solid-soft/48/if-else.png
- solid-sharp: https://gentleface.com/svg/solid-sharp/16/if-else.svg · PNG https://gentleface.com/png/solid-sharp/16/if-else.png · https://gentleface.com/png/solid-sharp/32/if-else.png · https://gentleface.com/png/solid-sharp/48/if-else.png

The SVG of every style: https://gentleface.com/icons/if-else.json (`svg`).

## Code (line-round)

The snippets are decorative (aria-hidden). For an icon that carries meaning on its own, such as an icon-only button, label the button, or give the SVG role="img" and an aria-label. For another style, take its SVG from the JSON and swap the path `d`.

### SVG

```svg
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true"><path d="M12.42 4.176C12.741 4.303 13.024 4.488 13.268 4.732C13.512 4.976 13.697 5.259 13.824 5.58C13.941 5.875 14 6.182 14 6.5L14 13.5C14 13.641 13.952 13.759 13.856 13.856C13.759 13.952 13.641 14 13.5 14C13.359 14 13.241 13.952 13.144 13.856C13.048 13.759 13 13.641 13 13.5L13 6.5C13 6.309 12.965 6.125 12.895 5.948C12.818 5.755 12.707 5.586 12.561 5.439C12.414 5.293 12.245 5.182 12.052 5.105C11.875 5.035 11.691 5 11.5 5L10.662 5C10.619 5.073 10.565 5.143 10.5 5.207L8.207 7.5C8.012 7.695 7.776 7.793 7.5 7.793C7.224 7.793 6.988 7.695 6.793 7.5L4.5 5.207C4.435 5.142 4.381 5.073 4.338 5L3.5 5C3.309 5 3.125 5.035 2.948 5.105C2.755 5.182 2.586 5.293 2.439 5.439C2.293 5.586 2.182 5.755 2.105 5.948C2.035 6.125 2 6.309 2 6.5L2 13.5C2 13.641 1.952 13.759 1.856 13.856C1.759 13.952 1.641 14 1.5 14C1.359 14 1.241 13.952 1.144 13.856C1.048 13.759 1 13.641 1 13.5L1 6.5C1 6.182 1.059 5.875 1.176 5.58C1.303 5.259 1.488 4.976 1.732 4.732C1.976 4.488 2.259 4.303 2.58 4.176C2.875 4.059 3.182 4 3.5 4L4.338 4C4.381 3.927 4.435 3.858 4.5 3.793L6.793 1.5C6.988 1.305 7.224 1.207 7.5 1.207C7.776 1.207 8.012 1.305 8.207 1.5L10.5 3.793C10.565 3.857 10.619 3.927 10.662 4L11.5 4C11.818 4 12.125 4.059 12.42 4.176ZM5.207 4.5L7.5 6.793L9.793 4.5L7.5 2.207L5.207 4.5Z"/></svg>
```

### React

```tsx
// Gentleface "if-else" (line-round), MIT. https://gentleface.com/icons/if-else
import type { SVGProps } from 'react';

export function IfElseIcon(props: SVGProps<SVGSVGElement>) {
  return (
    <svg xmlns="http://www.w3.org/2000/svg" width={16} height={16} viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
      <path d="M12.42 4.176C12.741 4.303 13.024 4.488 13.268 4.732C13.512 4.976 13.697 5.259 13.824 5.58C13.941 5.875 14 6.182 14 6.5L14 13.5C14 13.641 13.952 13.759 13.856 13.856C13.759 13.952 13.641 14 13.5 14C13.359 14 13.241 13.952 13.144 13.856C13.048 13.759 13 13.641 13 13.5L13 6.5C13 6.309 12.965 6.125 12.895 5.948C12.818 5.755 12.707 5.586 12.561 5.439C12.414 5.293 12.245 5.182 12.052 5.105C11.875 5.035 11.691 5 11.5 5L10.662 5C10.619 5.073 10.565 5.143 10.5 5.207L8.207 7.5C8.012 7.695 7.776 7.793 7.5 7.793C7.224 7.793 6.988 7.695 6.793 7.5L4.5 5.207C4.435 5.142 4.381 5.073 4.338 5L3.5 5C3.309 5 3.125 5.035 2.948 5.105C2.755 5.182 2.586 5.293 2.439 5.439C2.293 5.586 2.182 5.755 2.105 5.948C2.035 6.125 2 6.309 2 6.5L2 13.5C2 13.641 1.952 13.759 1.856 13.856C1.759 13.952 1.641 14 1.5 14C1.359 14 1.241 13.952 1.144 13.856C1.048 13.759 1 13.641 1 13.5L1 6.5C1 6.182 1.059 5.875 1.176 5.58C1.303 5.259 1.488 4.976 1.732 4.732C1.976 4.488 2.259 4.303 2.58 4.176C2.875 4.059 3.182 4 3.5 4L4.338 4C4.381 3.927 4.435 3.858 4.5 3.793L6.793 1.5C6.988 1.305 7.224 1.207 7.5 1.207C7.776 1.207 8.012 1.305 8.207 1.5L10.5 3.793C10.565 3.857 10.619 3.927 10.662 4L11.5 4C11.818 4 12.125 4.059 12.42 4.176ZM5.207 4.5L7.5 6.793L9.793 4.5L7.5 2.207L5.207 4.5Z" />
    </svg>
  );
}
```

### Vue

```vue
<!-- Gentleface "if-else" (line-round), MIT. https://gentleface.com/icons/if-else -->
<template>
  <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true">
    <path d="M12.42 4.176C12.741 4.303 13.024 4.488 13.268 4.732C13.512 4.976 13.697 5.259 13.824 5.58C13.941 5.875 14 6.182 14 6.5L14 13.5C14 13.641 13.952 13.759 13.856 13.856C13.759 13.952 13.641 14 13.5 14C13.359 14 13.241 13.952 13.144 13.856C13.048 13.759 13 13.641 13 13.5L13 6.5C13 6.309 12.965 6.125 12.895 5.948C12.818 5.755 12.707 5.586 12.561 5.439C12.414 5.293 12.245 5.182 12.052 5.105C11.875 5.035 11.691 5 11.5 5L10.662 5C10.619 5.073 10.565 5.143 10.5 5.207L8.207 7.5C8.012 7.695 7.776 7.793 7.5 7.793C7.224 7.793 6.988 7.695 6.793 7.5L4.5 5.207C4.435 5.142 4.381 5.073 4.338 5L3.5 5C3.309 5 3.125 5.035 2.948 5.105C2.755 5.182 2.586 5.293 2.439 5.439C2.293 5.586 2.182 5.755 2.105 5.948C2.035 6.125 2 6.309 2 6.5L2 13.5C2 13.641 1.952 13.759 1.856 13.856C1.759 13.952 1.641 14 1.5 14C1.359 14 1.241 13.952 1.144 13.856C1.048 13.759 1 13.641 1 13.5L1 6.5C1 6.182 1.059 5.875 1.176 5.58C1.303 5.259 1.488 4.976 1.732 4.732C1.976 4.488 2.259 4.303 2.58 4.176C2.875 4.059 3.182 4 3.5 4L4.338 4C4.381 3.927 4.435 3.858 4.5 3.793L6.793 1.5C6.988 1.305 7.224 1.207 7.5 1.207C7.776 1.207 8.012 1.305 8.207 1.5L10.5 3.793C10.565 3.857 10.619 3.927 10.662 4L11.5 4C11.818 4 12.125 4.059 12.42 4.176ZM5.207 4.5L7.5 6.793L9.793 4.5L7.5 2.207L5.207 4.5Z" />
  </svg>
</template>
```

### Svelte

```svelte
<!-- Gentleface "if-else" (line-round), MIT. https://gentleface.com/icons/if-else -->
<script>
  let props = $props();
</script>

<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="currentColor" aria-hidden="true" {...props}>
  <path d="M12.42 4.176C12.741 4.303 13.024 4.488 13.268 4.732C13.512 4.976 13.697 5.259 13.824 5.58C13.941 5.875 14 6.182 14 6.5L14 13.5C14 13.641 13.952 13.759 13.856 13.856C13.759 13.952 13.641 14 13.5 14C13.359 14 13.241 13.952 13.144 13.856C13.048 13.759 13 13.641 13 13.5L13 6.5C13 6.309 12.965 6.125 12.895 5.948C12.818 5.755 12.707 5.586 12.561 5.439C12.414 5.293 12.245 5.182 12.052 5.105C11.875 5.035 11.691 5 11.5 5L10.662 5C10.619 5.073 10.565 5.143 10.5 5.207L8.207 7.5C8.012 7.695 7.776 7.793 7.5 7.793C7.224 7.793 6.988 7.695 6.793 7.5L4.5 5.207C4.435 5.142 4.381 5.073 4.338 5L3.5 5C3.309 5 3.125 5.035 2.948 5.105C2.755 5.182 2.586 5.293 2.439 5.439C2.293 5.586 2.182 5.755 2.105 5.948C2.035 6.125 2 6.309 2 6.5L2 13.5C2 13.641 1.952 13.759 1.856 13.856C1.759 13.952 1.641 14 1.5 14C1.359 14 1.241 13.952 1.144 13.856C1.048 13.759 1 13.641 1 13.5L1 6.5C1 6.182 1.059 5.875 1.176 5.58C1.303 5.259 1.488 4.976 1.732 4.732C1.976 4.488 2.259 4.303 2.58 4.176C2.875 4.059 3.182 4 3.5 4L4.338 4C4.381 3.927 4.435 3.858 4.5 3.793L6.793 1.5C6.988 1.305 7.224 1.207 7.5 1.207C7.776 1.207 8.012 1.305 8.207 1.5L10.5 3.793C10.565 3.857 10.619 3.927 10.662 4L11.5 4C11.818 4 12.125 4.059 12.42 4.176ZM5.207 4.5L7.5 6.793L9.793 4.5L7.5 2.207L5.207 4.5Z" />
</svg>
```

### HTML img

```html
<!-- Gentleface "if-else" (line-round), MIT. https://gentleface.com/icons/if-else. An <img> can't take currentColor: it draws black. Inline the SVG or use the CSS mask to color it. -->
<img src="https://gentleface.com/svg/line-round/16/if-else.svg" width="16" height="16" alt="">
```

### CSS

```css
/* Gentleface "if-else" (line-round), MIT. https://gentleface.com/icons/if-else. Takes the text color. */
.icon-if-else {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M12.42 4.176C12.741 4.303 13.024 4.488 13.268 4.732C13.512 4.976 13.697 5.259 13.824 5.58C13.941 5.875 14 6.182 14 6.5L14 13.5C14 13.641 13.952 13.759 13.856 13.856C13.759 13.952 13.641 14 13.5 14C13.359 14 13.241 13.952 13.144 13.856C13.048 13.759 13 13.641 13 13.5L13 6.5C13 6.309 12.965 6.125 12.895 5.948C12.818 5.755 12.707 5.586 12.561 5.439C12.414 5.293 12.245 5.182 12.052 5.105C11.875 5.035 11.691 5 11.5 5L10.662 5C10.619 5.073 10.565 5.143 10.5 5.207L8.207 7.5C8.012 7.695 7.776 7.793 7.5 7.793C7.224 7.793 6.988 7.695 6.793 7.5L4.5 5.207C4.435 5.142 4.381 5.073 4.338 5L3.5 5C3.309 5 3.125 5.035 2.948 5.105C2.755 5.182 2.586 5.293 2.439 5.439C2.293 5.586 2.182 5.755 2.105 5.948C2.035 6.125 2 6.309 2 6.5L2 13.5C2 13.641 1.952 13.759 1.856 13.856C1.759 13.952 1.641 14 1.5 14C1.359 14 1.241 13.952 1.144 13.856C1.048 13.759 1 13.641 1 13.5L1 6.5C1 6.182 1.059 5.875 1.176 5.58C1.303 5.259 1.488 4.976 1.732 4.732C1.976 4.488 2.259 4.303 2.58 4.176C2.875 4.059 3.182 4 3.5 4L4.338 4C4.381 3.927 4.435 3.858 4.5 3.793L6.793 1.5C6.988 1.305 7.224 1.207 7.5 1.207C7.776 1.207 8.012 1.305 8.207 1.5L10.5 3.793C10.565 3.857 10.619 3.927 10.662 4L11.5 4C11.818 4 12.125 4.059 12.42 4.176ZM5.207 4.5L7.5 6.793L9.793 4.5L7.5 2.207L5.207 4.5Z'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M12.42 4.176C12.741 4.303 13.024 4.488 13.268 4.732C13.512 4.976 13.697 5.259 13.824 5.58C13.941 5.875 14 6.182 14 6.5L14 13.5C14 13.641 13.952 13.759 13.856 13.856C13.759 13.952 13.641 14 13.5 14C13.359 14 13.241 13.952 13.144 13.856C13.048 13.759 13 13.641 13 13.5L13 6.5C13 6.309 12.965 6.125 12.895 5.948C12.818 5.755 12.707 5.586 12.561 5.439C12.414 5.293 12.245 5.182 12.052 5.105C11.875 5.035 11.691 5 11.5 5L10.662 5C10.619 5.073 10.565 5.143 10.5 5.207L8.207 7.5C8.012 7.695 7.776 7.793 7.5 7.793C7.224 7.793 6.988 7.695 6.793 7.5L4.5 5.207C4.435 5.142 4.381 5.073 4.338 5L3.5 5C3.309 5 3.125 5.035 2.948 5.105C2.755 5.182 2.586 5.293 2.439 5.439C2.293 5.586 2.182 5.755 2.105 5.948C2.035 6.125 2 6.309 2 6.5L2 13.5C2 13.641 1.952 13.759 1.856 13.856C1.759 13.952 1.641 14 1.5 14C1.359 14 1.241 13.952 1.144 13.856C1.048 13.759 1 13.641 1 13.5L1 6.5C1 6.182 1.059 5.875 1.176 5.58C1.303 5.259 1.488 4.976 1.732 4.732C1.976 4.488 2.259 4.303 2.58 4.176C2.875 4.059 3.182 4 3.5 4L4.338 4C4.381 3.927 4.435 3.858 4.5 3.793L6.793 1.5C6.988 1.305 7.224 1.207 7.5 1.207C7.776 1.207 8.012 1.305 8.207 1.5L10.5 3.793C10.565 3.857 10.619 3.927 10.662 4L11.5 4C11.818 4 12.125 4.059 12.42 4.176ZM5.207 4.5L7.5 6.793L9.793 4.5L7.5 2.207L5.207 4.5Z'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}
```

### Data URL

```text
data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath d='M12.42 4.176C12.741 4.303 13.024 4.488 13.268 4.732C13.512 4.976 13.697 5.259 13.824 5.58C13.941 5.875 14 6.182 14 6.5L14 13.5C14 13.641 13.952 13.759 13.856 13.856C13.759 13.952 13.641 14 13.5 14C13.359 14 13.241 13.952 13.144 13.856C13.048 13.759 13 13.641 13 13.5L13 6.5C13 6.309 12.965 6.125 12.895 5.948C12.818 5.755 12.707 5.586 12.561 5.439C12.414 5.293 12.245 5.182 12.052 5.105C11.875 5.035 11.691 5 11.5 5L10.662 5C10.619 5.073 10.565 5.143 10.5 5.207L8.207 7.5C8.012 7.695 7.776 7.793 7.5 7.793C7.224 7.793 6.988 7.695 6.793 7.5L4.5 5.207C4.435 5.142 4.381 5.073 4.338 5L3.5 5C3.309 5 3.125 5.035 2.948 5.105C2.755 5.182 2.586 5.293 2.439 5.439C2.293 5.586 2.182 5.755 2.105 5.948C2.035 6.125 2 6.309 2 6.5L2 13.5C2 13.641 1.952 13.759 1.856 13.856C1.759 13.952 1.641 14 1.5 14C1.359 14 1.241 13.952 1.144 13.856C1.048 13.759 1 13.641 1 13.5L1 6.5C1 6.182 1.059 5.875 1.176 5.58C1.303 5.259 1.488 4.976 1.732 4.732C1.976 4.488 2.259 4.303 2.58 4.176C2.875 4.059 3.182 4 3.5 4L4.338 4C4.381 3.927 4.435 3.858 4.5 3.793L6.793 1.5C6.988 1.305 7.224 1.207 7.5 1.207C7.776 1.207 8.012 1.305 8.207 1.5L10.5 3.793C10.565 3.857 10.619 3.927 10.662 4L11.5 4C11.818 4 12.125 4.059 12.42 4.176ZM5.207 4.5L7.5 6.793L9.793 4.5L7.5 2.207L5.207 4.5Z'/%3E%3C/svg%3E
```

### Sprite

```html
<!-- Gentleface "if-else" (line-round), MIT. https://gentleface.com/icons/if-else
     Every icon of this style in one file: https://gentleface.com/sprite/line-round.svg
     Serve it from your own origin: <use> does not load from another origin. -->
<svg width="16" height="16" aria-hidden="true"><use href="/sprite/line-round.svg#if-else"/></svg>
```

### SwiftUI

```swift
// Gentleface "if-else" (line-round), MIT. https://gentleface.com/icons/if-else
import SwiftUI

struct IfElseIcon: Shape {
    func path(in rect: CGRect) -> Path {
        var p = Path()
        p.move(to: CGPoint(x: 12.42, y: 4.176))
        p.addCurve(to: CGPoint(x: 13.268, y: 4.732), control1: CGPoint(x: 12.741, y: 4.303), control2: CGPoint(x: 13.024, y: 4.488))
        p.addCurve(to: CGPoint(x: 13.824, y: 5.58), control1: CGPoint(x: 13.512, y: 4.976), control2: CGPoint(x: 13.697, y: 5.259))
        p.addCurve(to: CGPoint(x: 14, y: 6.5), control1: CGPoint(x: 13.941, y: 5.875), control2: CGPoint(x: 14, y: 6.182))
        p.addLine(to: CGPoint(x: 14, y: 13.5))
        p.addCurve(to: CGPoint(x: 13.856, y: 13.856), control1: CGPoint(x: 14, y: 13.641), control2: CGPoint(x: 13.952, y: 13.759))
        p.addCurve(to: CGPoint(x: 13.5, y: 14), control1: CGPoint(x: 13.759, y: 13.952), control2: CGPoint(x: 13.641, y: 14))
        p.addCurve(to: CGPoint(x: 13.144, y: 13.856), control1: CGPoint(x: 13.359, y: 14), control2: CGPoint(x: 13.241, y: 13.952))
        p.addCurve(to: CGPoint(x: 13, y: 13.5), control1: CGPoint(x: 13.048, y: 13.759), control2: CGPoint(x: 13, y: 13.641))
        p.addLine(to: CGPoint(x: 13, y: 6.5))
        p.addCurve(to: CGPoint(x: 12.895, y: 5.948), control1: CGPoint(x: 13, y: 6.309), control2: CGPoint(x: 12.965, y: 6.125))
        p.addCurve(to: CGPoint(x: 12.561, y: 5.439), control1: CGPoint(x: 12.818, y: 5.755), control2: CGPoint(x: 12.707, y: 5.586))
        p.addCurve(to: CGPoint(x: 12.052, y: 5.105), control1: CGPoint(x: 12.414, y: 5.293), control2: CGPoint(x: 12.245, y: 5.182))
        p.addCurve(to: CGPoint(x: 11.5, y: 5), control1: CGPoint(x: 11.875, y: 5.035), control2: CGPoint(x: 11.691, y: 5))
        p.addLine(to: CGPoint(x: 10.662, y: 5))
        p.addCurve(to: CGPoint(x: 10.5, y: 5.207), control1: CGPoint(x: 10.619, y: 5.073), control2: CGPoint(x: 10.565, y: 5.143))
        p.addLine(to: CGPoint(x: 8.207, y: 7.5))
        p.addCurve(to: CGPoint(x: 7.5, y: 7.793), control1: CGPoint(x: 8.012, y: 7.695), control2: CGPoint(x: 7.776, y: 7.793))
        p.addCurve(to: CGPoint(x: 6.793, y: 7.5), control1: CGPoint(x: 7.224, y: 7.793), control2: CGPoint(x: 6.988, y: 7.695))
        p.addLine(to: CGPoint(x: 4.5, y: 5.207))
        p.addCurve(to: CGPoint(x: 4.338, y: 5), control1: CGPoint(x: 4.435, y: 5.142), control2: CGPoint(x: 4.381, y: 5.073))
        p.addLine(to: CGPoint(x: 3.5, y: 5))
        p.addCurve(to: CGPoint(x: 2.948, y: 5.105), control1: CGPoint(x: 3.309, y: 5), control2: CGPoint(x: 3.125, y: 5.035))
        p.addCurve(to: CGPoint(x: 2.439, y: 5.439), control1: CGPoint(x: 2.755, y: 5.182), control2: CGPoint(x: 2.586, y: 5.293))
        p.addCurve(to: CGPoint(x: 2.105, y: 5.948), control1: CGPoint(x: 2.293, y: 5.586), control2: CGPoint(x: 2.182, y: 5.755))
        p.addCurve(to: CGPoint(x: 2, y: 6.5), control1: CGPoint(x: 2.035, y: 6.125), control2: CGPoint(x: 2, y: 6.309))
        p.addLine(to: CGPoint(x: 2, y: 13.5))
        p.addCurve(to: CGPoint(x: 1.856, y: 13.856), control1: CGPoint(x: 2, y: 13.641), control2: CGPoint(x: 1.952, y: 13.759))
        p.addCurve(to: CGPoint(x: 1.5, y: 14), control1: CGPoint(x: 1.759, y: 13.952), control2: CGPoint(x: 1.641, y: 14))
        p.addCurve(to: CGPoint(x: 1.144, y: 13.856), control1: CGPoint(x: 1.359, y: 14), control2: CGPoint(x: 1.241, y: 13.952))
        p.addCurve(to: CGPoint(x: 1, y: 13.5), control1: CGPoint(x: 1.048, y: 13.759), control2: CGPoint(x: 1, y: 13.641))
        p.addLine(to: CGPoint(x: 1, y: 6.5))
        p.addCurve(to: CGPoint(x: 1.176, y: 5.58), control1: CGPoint(x: 1, y: 6.182), control2: CGPoint(x: 1.059, y: 5.875))
        p.addCurve(to: CGPoint(x: 1.732, y: 4.732), control1: CGPoint(x: 1.303, y: 5.259), control2: CGPoint(x: 1.488, y: 4.976))
        p.addCurve(to: CGPoint(x: 2.58, y: 4.176), control1: CGPoint(x: 1.976, y: 4.488), control2: CGPoint(x: 2.259, y: 4.303))
        p.addCurve(to: CGPoint(x: 3.5, y: 4), control1: CGPoint(x: 2.875, y: 4.059), control2: CGPoint(x: 3.182, y: 4))
        p.addLine(to: CGPoint(x: 4.338, y: 4))
        p.addCurve(to: CGPoint(x: 4.5, y: 3.793), control1: CGPoint(x: 4.381, y: 3.927), control2: CGPoint(x: 4.435, y: 3.858))
        p.addLine(to: CGPoint(x: 6.793, y: 1.5))
        p.addCurve(to: CGPoint(x: 7.5, y: 1.207), control1: CGPoint(x: 6.988, y: 1.305), control2: CGPoint(x: 7.224, y: 1.207))
        p.addCurve(to: CGPoint(x: 8.207, y: 1.5), control1: CGPoint(x: 7.776, y: 1.207), control2: CGPoint(x: 8.012, y: 1.305))
        p.addLine(to: CGPoint(x: 10.5, y: 3.793))
        p.addCurve(to: CGPoint(x: 10.662, y: 4), control1: CGPoint(x: 10.565, y: 3.857), control2: CGPoint(x: 10.619, y: 3.927))
        p.addLine(to: CGPoint(x: 11.5, y: 4))
        p.addCurve(to: CGPoint(x: 12.42, y: 4.176), control1: CGPoint(x: 11.818, y: 4), control2: CGPoint(x: 12.125, y: 4.059))
        p.closeSubpath()
        p.move(to: CGPoint(x: 5.207, y: 4.5))
        p.addLine(to: CGPoint(x: 7.5, y: 6.793))
        p.addLine(to: CGPoint(x: 9.793, y: 4.5))
        p.addLine(to: CGPoint(x: 7.5, y: 2.207))
        p.addLine(to: CGPoint(x: 5.207, y: 4.5))
        p.closeSubpath()
        return p.applying(CGAffineTransform(scaleX: rect.width / 16, y: rect.height / 16))
    }
}

// IfElseIcon().frame(width: 16, height: 16) fills with the foreground style. Keep it on whole points to stay crisp.
```

### Compose

```kotlin
// Gentleface "if-else" (line-round), MIT. https://gentleface.com/icons/if-else
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.SolidColor
import androidx.compose.ui.graphics.vector.ImageVector
import androidx.compose.ui.graphics.vector.addPathNodes
import androidx.compose.ui.unit.dp

val IfElseIcon: ImageVector by lazy {
    ImageVector.Builder(
        name = "if-else", defaultWidth = 16.dp, defaultHeight = 16.dp,
        viewportWidth = 16f, viewportHeight = 16f,
    ).addPath(
        pathData = addPathNodes("M12.42 4.176C12.741 4.303 13.024 4.488 13.268 4.732C13.512 4.976 13.697 5.259 13.824 5.58C13.941 5.875 14 6.182 14 6.5L14 13.5C14 13.641 13.952 13.759 13.856 13.856C13.759 13.952 13.641 14 13.5 14C13.359 14 13.241 13.952 13.144 13.856C13.048 13.759 13 13.641 13 13.5L13 6.5C13 6.309 12.965 6.125 12.895 5.948C12.818 5.755 12.707 5.586 12.561 5.439C12.414 5.293 12.245 5.182 12.052 5.105C11.875 5.035 11.691 5 11.5 5L10.662 5C10.619 5.073 10.565 5.143 10.5 5.207L8.207 7.5C8.012 7.695 7.776 7.793 7.5 7.793C7.224 7.793 6.988 7.695 6.793 7.5L4.5 5.207C4.435 5.142 4.381 5.073 4.338 5L3.5 5C3.309 5 3.125 5.035 2.948 5.105C2.755 5.182 2.586 5.293 2.439 5.439C2.293 5.586 2.182 5.755 2.105 5.948C2.035 6.125 2 6.309 2 6.5L2 13.5C2 13.641 1.952 13.759 1.856 13.856C1.759 13.952 1.641 14 1.5 14C1.359 14 1.241 13.952 1.144 13.856C1.048 13.759 1 13.641 1 13.5L1 6.5C1 6.182 1.059 5.875 1.176 5.58C1.303 5.259 1.488 4.976 1.732 4.732C1.976 4.488 2.259 4.303 2.58 4.176C2.875 4.059 3.182 4 3.5 4L4.338 4C4.381 3.927 4.435 3.858 4.5 3.793L6.793 1.5C6.988 1.305 7.224 1.207 7.5 1.207C7.776 1.207 8.012 1.305 8.207 1.5L10.5 3.793C10.565 3.857 10.619 3.927 10.662 4L11.5 4C11.818 4 12.125 4.059 12.42 4.176ZM5.207 4.5L7.5 6.793L9.793 4.5L7.5 2.207L5.207 4.5Z"),
        fill = SolidColor(Color.Black),
    ).build()
}

// Icon(IfElseIcon, contentDescription = null) tints it with LocalContentColor.
```

### Android XML

```xml
<!-- res/drawable/ic_if_else.xml · Gentleface "if-else" (line-round), MIT. https://gentleface.com/icons/if-else -->
<vector xmlns:android="http://schemas.android.com/apk/res/android"
    android:width="16dp"
    android:height="16dp"
    android:viewportWidth="16"
    android:viewportHeight="16"
    android:tint="?attr/colorControlNormal">
  <path
      android:fillColor="@android:color/white"
      android:pathData="M12.42 4.176C12.741 4.303 13.024 4.488 13.268 4.732C13.512 4.976 13.697 5.259 13.824 5.58C13.941 5.875 14 6.182 14 6.5L14 13.5C14 13.641 13.952 13.759 13.856 13.856C13.759 13.952 13.641 14 13.5 14C13.359 14 13.241 13.952 13.144 13.856C13.048 13.759 13 13.641 13 13.5L13 6.5C13 6.309 12.965 6.125 12.895 5.948C12.818 5.755 12.707 5.586 12.561 5.439C12.414 5.293 12.245 5.182 12.052 5.105C11.875 5.035 11.691 5 11.5 5L10.662 5C10.619 5.073 10.565 5.143 10.5 5.207L8.207 7.5C8.012 7.695 7.776 7.793 7.5 7.793C7.224 7.793 6.988 7.695 6.793 7.5L4.5 5.207C4.435 5.142 4.381 5.073 4.338 5L3.5 5C3.309 5 3.125 5.035 2.948 5.105C2.755 5.182 2.586 5.293 2.439 5.439C2.293 5.586 2.182 5.755 2.105 5.948C2.035 6.125 2 6.309 2 6.5L2 13.5C2 13.641 1.952 13.759 1.856 13.856C1.759 13.952 1.641 14 1.5 14C1.359 14 1.241 13.952 1.144 13.856C1.048 13.759 1 13.641 1 13.5L1 6.5C1 6.182 1.059 5.875 1.176 5.58C1.303 5.259 1.488 4.976 1.732 4.732C1.976 4.488 2.259 4.303 2.58 4.176C2.875 4.059 3.182 4 3.5 4L4.338 4C4.381 3.927 4.435 3.858 4.5 3.793L6.793 1.5C6.988 1.305 7.224 1.207 7.5 1.207C7.776 1.207 8.012 1.305 8.207 1.5L10.5 3.793C10.565 3.857 10.619 3.927 10.662 4L11.5 4C11.818 4 12.125 4.059 12.42 4.176ZM5.207 4.5L7.5 6.793L9.793 4.5L7.5 2.207L5.207 4.5Z"/>
</vector>
```

### Flutter

```dart
// Gentleface "if-else" (line-round), MIT. https://gentleface.com/icons/if-else
import 'package:flutter/widgets.dart';

class IfElseIcon extends StatelessWidget {
  const IfElseIcon({super.key, this.size = 16, this.color});
  final double size;
  final Color? color;

  @override
  Widget build(BuildContext context) => CustomPaint(
        size: Size.square(size),
        painter: _IfElseIconPainter(color ?? IconTheme.of(context).color ?? const Color(0xFF000000)),
      );
}

class _IfElseIconPainter extends CustomPainter {
  _IfElseIconPainter(this.color);
  final Color color;

  @override
  void paint(Canvas canvas, Size size) {
    canvas.scale(size.width / 16, size.height / 16);
    final p = Path()
      ..moveTo(12.42, 4.176)
      ..cubicTo(12.741, 4.303, 13.024, 4.488, 13.268, 4.732)
      ..cubicTo(13.512, 4.976, 13.697, 5.259, 13.824, 5.58)
      ..cubicTo(13.941, 5.875, 14, 6.182, 14, 6.5)
      ..lineTo(14, 13.5)
      ..cubicTo(14, 13.641, 13.952, 13.759, 13.856, 13.856)
      ..cubicTo(13.759, 13.952, 13.641, 14, 13.5, 14)
      ..cubicTo(13.359, 14, 13.241, 13.952, 13.144, 13.856)
      ..cubicTo(13.048, 13.759, 13, 13.641, 13, 13.5)
      ..lineTo(13, 6.5)
      ..cubicTo(13, 6.309, 12.965, 6.125, 12.895, 5.948)
      ..cubicTo(12.818, 5.755, 12.707, 5.586, 12.561, 5.439)
      ..cubicTo(12.414, 5.293, 12.245, 5.182, 12.052, 5.105)
      ..cubicTo(11.875, 5.035, 11.691, 5, 11.5, 5)
      ..lineTo(10.662, 5)
      ..cubicTo(10.619, 5.073, 10.565, 5.143, 10.5, 5.207)
      ..lineTo(8.207, 7.5)
      ..cubicTo(8.012, 7.695, 7.776, 7.793, 7.5, 7.793)
      ..cubicTo(7.224, 7.793, 6.988, 7.695, 6.793, 7.5)
      ..lineTo(4.5, 5.207)
      ..cubicTo(4.435, 5.142, 4.381, 5.073, 4.338, 5)
      ..lineTo(3.5, 5)
      ..cubicTo(3.309, 5, 3.125, 5.035, 2.948, 5.105)
      ..cubicTo(2.755, 5.182, 2.586, 5.293, 2.439, 5.439)
      ..cubicTo(2.293, 5.586, 2.182, 5.755, 2.105, 5.948)
      ..cubicTo(2.035, 6.125, 2, 6.309, 2, 6.5)
      ..lineTo(2, 13.5)
      ..cubicTo(2, 13.641, 1.952, 13.759, 1.856, 13.856)
      ..cubicTo(1.759, 13.952, 1.641, 14, 1.5, 14)
      ..cubicTo(1.359, 14, 1.241, 13.952, 1.144, 13.856)
      ..cubicTo(1.048, 13.759, 1, 13.641, 1, 13.5)
      ..lineTo(1, 6.5)
      ..cubicTo(1, 6.182, 1.059, 5.875, 1.176, 5.58)
      ..cubicTo(1.303, 5.259, 1.488, 4.976, 1.732, 4.732)
      ..cubicTo(1.976, 4.488, 2.259, 4.303, 2.58, 4.176)
      ..cubicTo(2.875, 4.059, 3.182, 4, 3.5, 4)
      ..lineTo(4.338, 4)
      ..cubicTo(4.381, 3.927, 4.435, 3.858, 4.5, 3.793)
      ..lineTo(6.793, 1.5)
      ..cubicTo(6.988, 1.305, 7.224, 1.207, 7.5, 1.207)
      ..cubicTo(7.776, 1.207, 8.012, 1.305, 8.207, 1.5)
      ..lineTo(10.5, 3.793)
      ..cubicTo(10.565, 3.857, 10.619, 3.927, 10.662, 4)
      ..lineTo(11.5, 4)
      ..cubicTo(11.818, 4, 12.125, 4.059, 12.42, 4.176)
      ..close()
      ..moveTo(5.207, 4.5)
      ..lineTo(7.5, 6.793)
      ..lineTo(9.793, 4.5)
      ..lineTo(7.5, 2.207)
      ..lineTo(5.207, 4.5)
      ..close();
    canvas.drawPath(p, Paint()..color = color);
  }

  @override
  bool shouldRepaint(_IfElseIconPainter old) => old.color != color;
}
```
