Cyteon / modu

Modu is a simple and fast interpreted programming language.
http://www.cyteon.tech/modu/
21 stars 7 forks source link

!= sucks even more than division used to #11

Closed coolbeans1212 closed 2 months ago

coolbeans1212 commented 2 months ago

ok so when i do this fn epicFunction(name) { if name == "Fred" { print("Your name is Fred! How cool"); } if name != "Fred" { //why does modu not have else 😭 print("Your name is not Fred. How sad.") } } epicFunction("goob");

and run modu main.modu this is the output: PS C:\Users\Matei\desktop\Modu Testing> modu run main.modu PS C:\Users\Matei\desktop\Modu Testing> thats right! it does ✨nothing✨! developer we have a bug

Cyteon commented 2 months ago

its not a != issue its a nesting issue

coolbeans1212 commented 2 months ago

its not a != issue its a nesting issue

:P

Cyteon commented 2 months ago

Fixed on packages branch