© Sandeep Nagar 2017

Sandeep Nagar, Beginning Julia Programming, https://doi.org/10.1007/978-1-4842-3171-5_11

11. Control Flow

Sandeep Nagar

(1)New York, USA

11.1 Introduction to Control Flow

When you evaluate Julia code line-by-line for execution, you sometimes need to shift the flow of execution out of this line-by-line manner to a different point of the code. In other words, the flow of the program needs to be altered. There are many reasons why you would need to make this shift. For example, a condition needs to be checked and then the flow can be directed to one of many directions, some parts of the calculation are repetitive so the program needs to be altered before returning back, or an error might happen and the flow needs to redirected. ...

Get Beginning Julia Programming: For Engineers and Scientists 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.