Asked
— Edited
Here's a little script to save you some time....
Hopefully the first of many....
#------------------------|
# Simple Greeting Script |
#------------------------|
Print ("+------------------------------------------------+" )
Print ("| Responses = Good Morning, Afternoon or Evening |" )
Print ("+------------------------------------------------+" )
IF ($hour>-1 and $hour<12 )
say ("Good morning." )
ELSEIF ($hour>11 and $hour<18 )
say ("Good afternoon." )
ELSEIF ($hour >17 )
say ("Good evening." )
ENDIF
Halt()
These help out a lot since I'm not a programmer.
I have been coping them down in a script folder and plan on using the later.
Again ... Thanks
I'm still learning but I have a good idea at what I'm doing now. I'm hoping that my scripts I've been sharing and updating with commentary will aid others in understanding it all and learn at the same time I learn.
It's very daunting looking at a huge 2,000 line script with multiple nests of IFs ELSEs ANDs and ORs but break it down in to smaller chunks (or snippets) and you can make sense of each part one by one then see how they all fit together, then write your own.
@tameion's script shows how to take a variable, examine it and give a response depending on the content of the variable. It could be easily modified for the four seasons, 12 signs of the zodiac (I believe that's something you have metioned @irobot?), day and night, weekday or weekend... you get the idea (I hope).
This is exactly why I thought having a section of the forum for scripting was screaming out for being requested. The cloud is great and everything but there was no real area for discussion, help and just looking at it and trying to follow it.