From a5d5d6997c639b9adb95d63cc1be645bcf4a2eaa Mon Sep 17 00:00:00 2001 From: Denis Lehmann Date: Sat, 15 Jan 2022 11:00:01 +0100 Subject: [PATCH] update greet example --- README.org | 14 +++++++------- examples/greet | 14 +++++++------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/README.org b/README.org index 3101420..f0b080b 100644 --- a/README.org +++ b/README.org @@ -331,14 +331,14 @@ # Actual script # ---------------------- - sfget "Enter your name" # Get input - echo "Hello ${sfin}!" # Use input + sfget "Enter your name" # Get input + echo "Hello ${sfin}!" # Use input - sfask "Do you want to tell me your age" # Ask for YES/no - if [ "$sfin" == true ]; then # Use answer - sfget "Enter your Age" # Get input - sfask "Is ${sftbf}${sfin}${sftrs} really your age" "no" # Use input and ask for yes/NO - if [ "$sfin" == true ]; then # Use answer + sfask "Do you want to tell me your age" # Ask for YES/no + if [ "$sfin" == true ]; then # Use answer + sfget "Enter your Age" # Get input + sfask "Is $sfin really your age" "no" # Use input and ask for yes/NO + if [ "$sfin" == true ]; then # Use answer echo "Great!" else echo "I knew it!" diff --git a/examples/greet b/examples/greet index 482721b..6c4d7d9 100755 --- a/examples/greet +++ b/examples/greet @@ -14,14 +14,14 @@ source "$(dirname $0)/../sf" # Actual script # ---------------------- -sfget "Enter your name" # Get input -echo "Hello ${sfin}!" # Use input +sfget "Enter your name" # Get input +echo "Hello ${sfin}!" # Use input -sfask "Do you want to tell me your age" # Ask for YES/no -if [ "$sfin" == true ]; then # Use answer - sfget "Enter your Age" # Get input - sfask "Is ${sftbf}${sfin}${sftrs} really your age" "no" # Use input and ask for yes/NO - if [ "$sfin" == true ]; then # Use answer +sfask "Do you want to tell me your age" # Ask for YES/no +if [ "$sfin" == true ]; then # Use answer + sfget "Enter your Age" # Get input + sfask "Is $sfin really your age" "no" # Use input and ask for yes/NO + if [ "$sfin" == true ]; then # Use answer echo "Great!" else echo "I knew it!"