if-else · Carbon
Free SVG if-else icon from Carbon. Rendered at 24×24 in the filled style and licensed under Apache-2.0. Copy directly as SVG, React (JSX), or Vue. Download as SVG or PNG. No login, no attribution required for Apache-2.0 licensed icons.
Tags
- if
- else
Code
HTML / SVG
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><g transform="scale(0.75) translate(0 0)"><path fill="currentColor" d="m26 26l-5-5l1.4-1.4l2.6 2.6V10H10.2L8 12.2v13.9l2.6-2.6l1.4 1.4l-5 5l-5-5l1.4-1.4L6 26.1V12.2L2.8 9L6 5.8V2h2v3.8L10.2 8H27v14.2l2.6-2.6L31 21z"/></g></svg>
React
// Run: npx sant-icons get carbon-if-else --format react
export function CarbonIfElse(props) {
return (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24" {...props}><g transform="scale(0.75) translate(0 0)"><path fill="currentColor" d="m26 26l-5-5l1.4-1.4l2.6 2.6V10H10.2L8 12.2v13.9l2.6-2.6l1.4 1.4l-5 5l-5-5l1.4-1.4L6 26.1V12.2L2.8 9L6 5.8V2h2v3.8L10.2 8H27v14.2l2.6-2.6L31 21z"/></g></svg>
);
}CLI
npx sant-icons get carbon-if-else
Properties
- Name
- if-else
- Library
- Carbon
- Style
- filled
- License
- Apache-2.0
- Version
- 1.2.30
- Identifier
- carbon-if-else
Related from Carbon
The if-else icon ships with Carbon, an open-source icon set licensed under Apache-2.0. Search for it as "carbon if-else", "if-else svg", or any of its tagged terms (if, else). The SVG is normalised to a 24×24 viewBox so you can drop it into any UI framework alongside the other icons here without scaling concerns.
Need this icon in your codebase fast? Install the MCP server for Claude Code (or any MCP-aware AI tool) and ask the model to fetch carbon-if-else directly into your project. No browser context-switch.