Logic Machine Forum
how to check if holiday - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: how to check if holiday (/showthread.php?tid=2309)



how to check if holiday - gjniewenhuijse - 30.10.2019

Is it possible to check if the current date is a holiday? (as saved in the holidays tab)


RE: how to check if holiday - admin - 30.10.2019

There's no function to check this directly at this moment. You can create a scheduler with two events. Set first to run only on holidays and the second not to run on holidays.


RE: how to check if holiday - Erwin van der Zwart - 30.10.2019

Hi,

I would make a bit object with a scheduler attached to it, set it to ""run only on holidays" and add a event at 0:00 to value 'true' and add a event to 23:59 to value "false"

Now the bit objects tells you that it is a holiday..

BR,

Erwin


RE: how to check if holiday - gjniewenhuijse - 30.10.2019

Thanks for the help..