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 diagram shows a simple scenario where a program needs to take one of the two paths based on the given condition.


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

Let us see the statements in detail −