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

StartNote
Copyright 2021 Jookia <contact@jookia.org>
SPDX-License-Identifier: LGPL-2.1-or-later
EndNote

System Print StartText Type 'Hi' for a greeting EndText Done
System Print StartText Type 'Exit' to exit EndText Done
Set Command To System Read EndSet

If Command Equals StartText Hi EndText
Then System Print StartText Hey there! EndText
Else True StartNote Does nothing EndNote
EndIf

If Command Equals StartText Exit EndText
Then System Exit
Else True
EndIf

System Print StartText What next? EndText Done

StartNote Without an Exit, NewLang will loop the file EndNote