Chapter 6: Conditionals and Iterative Statements
Conditional programming helps you to control the execution of a program in the desired manner. This means you can write software that meets all of the scenarios for the various sets of use cases with the help of conditional branching. Thus, in each conditional branch, you can write the logic for a specific use case. In this chapter, we will learn about conditional statements, in detail, in the V programming language. We will examine how to work with conditional blocks such as if, if-else, and chaining else-if, along with the use of the goto statement supported by labels. We will also cover the match block in depth, which is used for conditional code branching.
In the later parts of this chapter, ...
Get Getting Started with V Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.