diff options
| author | Nic Gaffney <gaffney_nic@protonmail.com> | 2025-02-17 18:59:01 -0600 |
|---|---|---|
| committer | Nic Gaffney <gaffney_nic@protonmail.com> | 2025-02-17 18:59:01 -0600 |
| commit | c77c9a42cd048a9f68aedf4fed5bfa8a2a4051d6 (patch) | |
| tree | 09476066d0ec079a731db734272f99eeb7452aa7 /examples | |
| parent | 013086f9c55e33f7bfcfd775c8b9d03fb2311de4 (diff) | |
| download | calico-c77c9a42cd048a9f68aedf4fed5bfa8a2a4051d6.tar.gz | |
Order of operatoins and basic if statement
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/test.nya | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/examples/test.nya b/examples/test.nya index 3088546..0b359aa 100644 --- a/examples/test.nya +++ b/examples/test.nya @@ -1,6 +1,8 @@ fn main() -> i32 { const testval = 6; var testvar = testval; - testvar = 5; - return testvar; + testvar = 5 + 3 * 7; + if (1 == 1) return testvar; + + return 7; } |
