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

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

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

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

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

System Print BeginText What next? EndText Done

BeginNote Without an Exit, NewLang will loop the file EndNote