Making my first foray into more advanced programming in VA. I received a kind assist from Pfeil on how to build a conditional response to a "what time is it" question. Before anybody suggests a simpler, more elegant TTS answer to simply read the precise time, I am building a recorded-voice profile so I need to go through this one laborious command. (yes, the example below has a TTS placeholder, but those will ultimately be replaced with Play Sound commands.)
I have divided an hour into four quarters because I only need a rough sense of time. So each of 24 hours follows this format:
Begin Text Compare : [{EXP: {TIMEHOUR24}{TIMEMINUTE} >= 2353 And {TIMEHOUR24}{TIMEMINUTE} <= 0007}] Equals '1'
Say, ‘Its around midnight’
Else If Text Compare : [{EXP: {TIMEHOUR24}{TIMEMINUTE} >= 0008 And {TIMEHOUR24}{TIMEMINUTE} <= 0022}] Equals '1'
Say, ‘Bout quarter past twelve’
Else If Text Compare : [{EXP: {TIMEHOUR24}{TIMEMINUTE} >= 0023 And {TIMEHOUR24}{TIMEMINUTE} <= 0037}] Equals '1'
Say, ‘Call it twelve-thirty’
Else If Text Compare : [{EXP: {TIMEHOUR24}{TIMEMINUTE} >= 0038 And {TIMEHOUR24}{TIMEMINUTE} <= 0052}] Equals '1'
Say, ‘Bout quarter to one’
That makes for a lot of lines. My question is this: Do I need to build this one line at a time using the Command Builder, or is there a lazy man's way to copy/paste the entire block in one pass? Many thanks in advance!