Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Selection: Difference between revisions

From Coderwiki
new
 
(No difference)

Latest revision as of 22:12, 9 August 2025

Selection involves making a decision based on whether a condition is true or false.

They allow us to branch our code: do different things depending on the input.

Types of selection

edit edit source

There are two main types of selection in programming languages: