examples/elixir_programming_skills/skills/control-structures/SKILL.md
--- lesson_style: summary title: Control Structures tags: - elixir - basics - flow links: - target: "[[pattern-matching]]" rel: prereq - target: "[[functions]]" rel: related - target: "[[error-handling]]" rel: related source_lessons: - https://elixirschool.com/en/lessons/basics/control_structures content_origin: Summarized from Elixir School lessons in paraphrased form. Not verbatim text. --- Summary of the lesson: prefer expression-oriented branching and explicit outco
npx skillsauth add pcharbon70/jido_skillset examples/elixir_programming_skills/skills/control-structuresInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Summary of the lesson: prefer expression-oriented branching and explicit outcomes.
if/unless are simple boolean tools, while case, cond, and with are better for multi-branch and multi-step flows where data shape matters.
Guards narrow valid clauses and keep decision logic local to the pattern.
Use [[pattern-matching]] to power these branches, shape logic into reusable [[functions]], and map success/error paths into [[error-handling]] conventions.
testing
--- title: bad tags: [one, two --- Invalid yaml frontmatter.
testing
B links back to [[a]].
testing
A links to [[b]].
testing
--- title: Beta --- Beta body.