Conditional Statement
« Back to Glossary IndexA conditional statement executes different code paths based on a boolean condition. It enables decision-making in programs. Common forms include if, else, and switch statements. Example: Executing code only if a value is greater than zero.
« Back to Glossary Index