if / elseExecutes code based on a condition.Syntaxif (condition) { } else { }DescriptionCondition in parentheses, blocks inside { }.ExampleLoading editor…▶ Try it yourselfExpected outputPassedWhen to use?Flow branching.Related commandsforRange-based for ( : )for →