Skip to content

Hello You

cl4cnam edited this page Dec 15, 2023 · 7 revisions

In this tutorial, you'll learn to write a "Hello You" program, that is, a program that asks for your name and greets you with that name.

Prepare your environment

Do as in Hello World tutorial except that you change the names: helloYouProgram, helloYou.html, helloYou.fg.

Write the program

Write these lines into helloYou.fg:

displayNewMessage('What is your name?')
var theName := awaitHumanText()
displayNewMessage('Hello, ' + theName + '!')

Test the program

Do as in Hello World tutorial (Don't forget to change 'helloWorld' into 'helloYou').

You should get something like this:

helloYou

⏮️ Previous tutorial      ⏭️ Next tutorial

Clone this wiki locally