Tyl Programming Language
▶ CONDITIONAL STATEMENT
Conditional statement is a statement that directs the program flow based on a condition.
Conditional statement is referred as: if statement.

If statement has three components:
Condition statement can be:
If Statement Composition
Say we have a boolean variable: 'es_verdad', with the value: TRUE.
es_verdad
A condition statement:
es_verdad ?
The line: 'es_verdad ?', is the condition line. The es_verdad is the condition statement, of type: variable condition, and the question mark: '?', is Tyl symbol for if statements.

A yes block:
print 'Si'
We can write this code:
es_verdad \t

es_verdad ?
print 'Si'
^
The characters combination: '\t' is Tyl code for TRUE, and is replaced by the symbol: '', which is Tyl symbol for TRUE. The caret: '^', is Tyl code for 'end statement', and is replaced by: ''. Tyl needs an end statement, to know where the yes block ends.

The above code will look like:
es_verdad

es_verdad ?
print 'Si'
Si
If there is only one statement in the yes block, it is posible to write the yes statement right after the condition:
es_verdad ? print 'Si'
The line: 'es_verdad ? print 'Si'', is called a one-line-if, and is good for short conditional statements.


PART 2