Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

Control Flow

Master conditionals, loops, and pattern matching.

Difficulty

Beginner

Concepts

  • If-else
  • Match expressions
  • For loops
  • While loops

Description

This example demonstrates Oxide's control flow constructs:

  • if/elseif/else/endif conditionals
  • match/case/default/endmatch pattern matching
  • for i = start to end/endfor range loops
  • while/endwhile conditional loops

Usage

oxide run main.ox

Expected Output

Grade: B
Wednesday
Counting:
  1
  2
  3
  4
  5
Countdown: 3
Countdown: 2
Countdown: 1
Liftoff!