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.moduPS C:\Users\Matei\desktop\Modu Testing>
thats right! it does ✨nothing✨!
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✨!