If Statement

Aral supports the following logical conditions:

  • Equals: a == b
  • Not equals: a != b
  • Less than: a < b
  • Less than or equal to: a <= b
  • Greater than: a > b
  • Greater than or equal to: a >= b

Example

ózgeriwshi san a = 5;
ózgeriwshi san b = 3;

eger (a > b) bolsa {
    shıǵar("a is greater than b");
} ol bolmasa (b > a) {
    shıǵar("b is greater than a");
} dım bolmasa {
    shıǵar("a and b are equal");
}

Back to top

Aral Programming Language - Open Source Educational Project

This site uses Just the Docs, a documentation theme for Jekyll.