If Conditions

Discussion, questions and support.
Post Reply
Stoef69
Posts: 2
Joined: Sep 3rd, ’24, 10:49

Post by Stoef69 » Sep 3rd, ’24, 11:00

Hey all,

I'm trying to use conditions to insert email greetings automatically based on what time it is.

For example, if it's 08:00, I want FastKeys to insert "Guten Morgen" and if it's 12:00, I want it to insert, "Guten Tag" and if it's 18:00, I want to insert "Guten Abend".
I would like to work with 3 conditions.

Any suggestions on how I got about it?

Thanks in advance

Stoef
User avatar
Tom
Posts: 837
Joined: Nov 24th, ’15, 23:39

Post by Tom » Sep 3rd, ’24, 18:42

I would set three if conditions (with no "else") in the same line:

A_Hour>0 and A_Hour<12 - Guten Morgen
A_Hour>12 and A_Hour<18 - Guten Tag
A_Hour>18 and A_Hour<24 - Guten Abend

%IF_Morgen%Guten Morgen%END%%IF_Tag%Guten Tag%END%%IF_Abend%Guten Abend%END%

Conditions tutorial:
https://youtu.be/-h-0icIwS80
Stoef69
Posts: 2
Joined: Sep 3rd, ’24, 10:49

Post by Stoef69 » Sep 4th, ’24, 09:02

Great, this works wonderfully. Thank you very much for your help, Tom. 👍

Greetings

Stoef
Post Reply