mirror of
https://gitlab.com/niansa/pilang.git
synced 2025-03-06 20:48:26 +01:00
Fixed typo in example script
This commit is contained in:
parent
fc09c60e79
commit
f1e70d2fcf
1 changed files with 1 additions and 1 deletions
2
test.pil
2
test.pil
|
@ -28,4 +28,4 @@ cmp isnotnum,$~birth year,0,print $~errnonum,exit 3
|
||||||
# Check if birth year is before current year
|
# Check if birth year is before current year
|
||||||
cmp smaller,$~current year,$~birth year,"print Will ,$~name, be born in the future?","set yesno,$input Yes/No?: ","cmp equal,$lower $~yesno,no,exit 4","cmp nonequal,$lower $~yesno,yes,print I give you up... Bye!,exit 4","set wasword,will be"
|
cmp smaller,$~current year,$~birth year,"print Will ,$~name, be born in the future?","set yesno,$input Yes/No?: ","cmp equal,$lower $~yesno,no,exit 4","cmp nonequal,$lower $~yesno,yes,print I give you up... Bye!,exit 4","set wasword,will be"
|
||||||
# Print result
|
# Print result
|
||||||
print $~name, ,$~wasword, born in ,$~birth year,",", so I guess he is ,$"sub asint,$~current year,$~birth year", Years old!
|
print $~name, ,$~wasword, born in ,$~birth year,",", so I guess ,$~name, is ,$"sub asint,$~current year,$~birth year", years old!
|
||||||
|
|
Loading…
Add table
Reference in a new issue