Discuss Scratch
- Discussion Forums
- » Things I'm Making and Creating
- » NewType, a new and easy programming language
- mybearworld
- Scratcher
1000+ posts
NewType, a new and easy programming language
Yeah, but that is python.but if staments in newtype is with {}No.That's just Pythonx = (True) if (x) : say [Yes] elif : say [No](Though here, you could replace “elif not x:” with a simple “else”.)x = True if x: print("Yes") elif not x: print("No")
Signatures are the only place where assets links still work.
- Rendangbike2
- Scratcher
1000+ posts
NewType, a new and easy programming language
python doesn't use {}Yeah, but that is python.but if staments in newtype is with {}No.That's just Pythonx = (True) if (x) : say [Yes] elif : say [No](Though here, you could replace “elif not x:” with a simple “else”.)x = True if x: print("Yes") elif not x: print("No")
- HPD1155
- Scratcher
100+ posts
NewType, a new and easy programming language
oohhhhhhhmaybe not elifThat's just Pythonx = (True) if (x) : say [Yes] elif : say [No]For the else if statement:
else if,
elseif,
elsif or
elif?
HOW ABOUT
elsif
i luv koenigseggs I is a hackr FYI
console.log(“hi); I’m an ethical hacker FYI
- mybearworld
- Scratcher
1000+ posts
NewType, a new and easy programming language
I'd go to else if - it's the easiest to understand.
Signatures are the only place where assets links still work.
- Maximouse
- Scratcher
1000+ posts
NewType, a new and easy programming language
I think “elsif” is weird, and the only language I've heard of that uses elsif is Ruby. HOW ABOUTelsif
- HPD1155
- Scratcher
100+ posts
NewType, a new and easy programming language
I think “elsif” is weird, and the only language I've heard of that uses elsif is Ruby. HOW ABOUTelsif
elf
Last edited by HPD1155 (Jan. 12, 2021 14:37:32)
i luv koenigseggs I is a hackr FYI
console.log(“hi); I’m an ethical hacker FYI
- mybearworld
- Scratcher
1000+ posts
NewType, a new and easy programming language
HPD1155 said thatpython doesn't use {}-snip-No.That's just Pythonx = (True) if (x) : say [Yes] elif : say [No]x = True if x: print("Yes") elif not x: print("No")
x = (True)
if (x) :
say [Yes]
elif :
say [No]
Signatures are the only place where assets links still work.
- mybearworld
- Scratcher
1000+ posts
NewType, a new and easy programming language
(removed by mybearworld because the site lagged)
Last edited by mybearworld (Jan. 12, 2021 14:39:53)
Signatures are the only place where assets links still work.
- Vaibhs11
- Scratcher
1000+ posts
NewType, a new and easy programming language
christmas is long goneI think “elsif” is weird, and the only language I've heard of that uses elsif is Ruby. HOW ABOUTelsif⨀w⨀ this oneelf
- Rendangbike2
- Scratcher
1000+ posts
NewType, a new and easy programming language
lolI think “elsif” is weird, and the only language I've heard of that uses elsif is Ruby. HOW ABOUTelsif⨀w⨀ this oneelf
- Rendangbike2
- Scratcher
1000+ posts
NewType, a new and easy programming language
In every programming language,
There is an element of packages
You'll add the packages,
And Snap! More feature for your PL !
There is an element of packages
You'll add the packages,
And Snap! More feature for your PL !
import popup
popup.alert[This is an example of a package that can make popups!]
ans = popup.prompt[This feature can ask questions!]
Last edited by Rendangbike2 (Jan. 13, 2021 14:13:16)
- mybearworld
- Scratcher
1000+ posts
NewType, a new and easy programming language
download seems a little misleading. I'd go for python's syntax here.
Edit: Yeah, that's better
import tkinter.messagebox as MsgBox MsgBox.showmessage("", "This is an example of a module that can do this")
Last edited by mybearworld (Jan. 13, 2021 14:27:01)
Signatures are the only place where assets links still work.
- Rendangbike2
- Scratcher
1000+ posts
NewType, a new and easy programming language
import it is! download seems a little misleading. I'd go for python's syntax here.import tkinter.messagebox as MsgBox MsgBox.showmessage("", "This is an example of a module that can do this")
- Rendangbike2
- Scratcher
1000+ posts
NewType, a new and easy programming language
Thanks! download seems a little misleading. I'd go for python's syntax here.Edit: Yeah, that's betterimport tkinter.messagebox as MsgBox MsgBox.showmessage("", "This is an example of a module that can do this")
- Rendangbike2
- Scratcher
1000+ posts
NewType, a new and easy programming language
i dont selebretb krismeschristmas is long goneI think “elsif” is weird, and the only language I've heard of that uses elsif is Ruby. HOW ABOUTelsif⨀w⨀ this oneelf
- mybearworld
- Scratcher
1000+ posts
NewType, a new and easy programming language
I really think else if is a good syntax. I'll do that in TextScratch I think.
Signatures are the only place where assets links still work.
- HPD1155
- Scratcher
100+ posts
NewType, a new and easy programming language
@rendangbike2 can you make me an admin in the NewType team in repl.it
i luv koenigseggs I is a hackr FYI
console.log(“hi); I’m an ethical hacker FYI
- HPD1155
- Scratcher
100+ posts
NewType, a new and easy programming language
anyone can get a free domain from freenom.com or someplace
i luv koenigseggs I is a hackr FYI
console.log(“hi); I’m an ethical hacker FYI
- Rendangbike2
- Scratcher
1000+ posts
NewType, a new and easy programming language
OK! @rendangbike2 can you make me an admin in the NewType team in repl.it
- Rendangbike2
- Scratcher
1000+ posts
NewType, a new and easy programming language
Good luck anyone can get a free domain from freenom.com or someplace