Programs can “branch” depending on the state of a variable or other system attribute. Computer scientists refer to these circumstances as “conditionals” or sometimes as “selections”. Programmers usually talk about IF/THEN/ELSE or SWITCH/CASE. This video introduces the concept of producing different output in different situations using IF.

Video here:

Advertisements