Month: June 2017

Lesson 9: Composite conditions with logical operators in Kotlin Language

So far we have seen operators: Relational (>, <,> =, <=, ==,! =) Mathematicians (+, -, *, /,%) But we are missing other essential operators: Logical (&&, ||) These two operators are used primarily in conditional structures to group several simple conditions. Kotlin "AND" Operator && conditions with logical operators Translated it reads like "Y". [...]

Read More

Lesson 8: Nested If conditional Statement in Kotlin language

Nested If conditional Statement in Kotlin language. We say that a conditional structure is nested when by the real or false branch of a conditional structure there is another conditional structure. Nested If conditional Statement in Kotlin language The flow diagram that appears contains two conditional structures. The main one is a compound conditional structure [...]

Read More

Lesson 7: If condition as an expression in Kotlin language

If condition as an expression in Kotlin language. In Kotlin there exists the possibility that the conditional if structure returns a value, a characteristic not common to other programming languages. We will see with a series of examples the syntax to use the if as expression. Problem 1 Load two integer values, store the largest [...]

Read More