Iif condition in a macro

jkpats12

Registered User.
Local time
Today, 20:52
Joined
Jan 27, 2004
Messages
45
Hi everyone,

Was hoping to get some help setting up an Iif condition.
I have a RunApp Action set up and would like to place an Iif condition next to it basically stating if today's date is a Saturday, quit application.

What I have tried is this and it does not work: Iif(Date(), "dddd")="Saturday"
I have the Quit Action below the RunApp Action, so if the condition is met it will quit the app, if condition is not met run the app.

If anyone can assist me with this it would be greatly appreciated.

Thanks
 
In the conditional part of the macro, put your statement without the IIF:
I would use the weekday function
 
Thank you for your help, it's working now.
 

Users who are viewing this thread

Back
Top Bottom