fa/doc/md/CONDITIONALS.md
Ari Archer 296c421396
Conditionals and grt/lst operators
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
2022-07-06 03:40:17 +03:00

401 B

Conditionals in fa programming language

Conditionals are pieces of code that execute if a certain condition passes, e.g. if x is grt 0

Currently there are two keywords for that:

  • If -- Checks if a condition is true
  • Else -- If if fails run that code

Example:

0 1 grt if
    -- If 1 > 0
else
    -- Panic! The world in ending!!!!
end

All if/else blocks must end with an end