ifdef…elsifdef…elsedef…endifdef Statements
The ifdef Statement The ifdef statements are executed at parse time, not runtime. This allows you to change the way your program operates in a very efficient manner. Since the ifdef statement…
The ifdef Statement The ifdef statements are executed at parse time, not runtime. This allows you to change the way your program operates in a very efficient manner. Since the ifdef statement…
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,…