Newer
Older
NewLang / docs / examples / greeting.txt
NewLang 0

StartNote
Copyright 2021 Jookia <contact@jookia.org>
SPDX-License-Identifier: LGPL-2.1-or-later
This is a comment and should be ignored by the parser
EndNote

System Print StartText Hello, there! EndText Done
System Print StartText Please enter your name: EndText Done
Set Name To System Read EndSet StartNote Reads an entire line EndNote
Set Prefix To StartText Hi there, EndText EndSet
Set Greeting To Prefix Append Name EndSet

If Name Equals StartText Jookia EndText
Then System Print StartText Hi creator! EndText
Else System Print Greeting
EndIf

System Exit Done