Euphoria - Branching


Branching is the most important aspect of any programming language. While writing your program, you may encounter a situation when you have to take a decision or you have to select one option out of the given many options.

Following figure shows a simple scenario where a program may take one of the two paths based on the given condition.


Euphoria provides following three types of decision making (branching or conditional) statements −

All the above statements have various forms which provides you a flexibity and ease of use based on different situations.