Euphoria – Switch Statements
The switch statement is used to run a specific set of statements, depending on the value of an expression. It often replaces a set of if…elsif statements giving you more control and readability of…
The switch statement is used to run a specific set of statements, depending on the value of an expression. It often replaces a set of if…elsif statements giving you more control and readability of…
The if Statement An if statement consists of a boolean expression followed by one or more statements. Syntax The syntax of if statement is − if expression then -- Statements will execute if the expression is…
Branching is the most important aspect of any programming language. While writing your program, you may encounter a situation when you have to make a decision or you have to…
The following simple example program demonstrates the assignment operator. Copy and paste following Euphoria program in test.ex file and run this program − #!/home/euphoria-4.0b2/bin/eui integer a = 10 integer b…
The following simple example program demonstrates the logical operator. Copy and paste following Euphoria program in test.ex file and run this program − #!/home/euphoria-4.0b2/bin/eui integer a = 1 integer b…
The following simple example program demonstrates the relational operator. Copy and paste following Euphoria program in test.ex file and run this program − #!/home/euphoria-4.0b2/bin/eui integer a = 10 integer b…
The following simple example program demonstrates the arithmetic operators. Copy and paste following Euphoria program in test.ex file and run this program − #!/home/euphoria-4.0b2/bin/eui integer a = 10 integer b…
Euphoria provides a rich set of operators to manipulate variables. We can divide all the Euphoria operators into the following groups − Arithmetic OperatorsRelational OperatorsLogical OperatorsAssignment OperatorsMisc Operators The Arithmetic…
A sequence is represented by a list of objects in brace brackets { }, separated by commas. A sequence can contain both atoms and other sequences. For example − {2,…
The data stored in memory can be of many types. For example, a person's age is stored as a numeric value and his or her address is stored as alphanumeric…