0PricingLogin
Helm Academy · Lesson

Truthiness and Operators in Conditions

Using eq, and, or, and not correctly.

Conditions Need Logic

A simple if checks one value, but real charts need richer tests. Helm gives you operators to compare and combine conditions cleanly.

Functions, Not Symbols

Go templates have no == operator. Comparisons are written as functions instead, with the function name first and the values after it.

{{ if eq .Values.env "prod" }}

All lessons in this course

  1. Conditional Blocks with if and else
  2. Truthiness and Operators in Conditions
  3. Looping Over Lists and Maps with range
  4. Scoping a Block with with
← Back to Helm Academy