group |
---|
Variables, Input |
You can ask the user to type a custom value for a variable. This article explains how.
To input for text, use ${varname} = @input
. You can optionally provide a question.
start
$name = @input What is your name?
Hi, $name!
To input for a number, use ${varname} = @number
. You can optionally provide a question.
start
$name = @input What is your name?
$money = @number How much money do you have?
Hi, $name! You have $$money.