With this function you can make blink the dots of your clock every second (every time the seconds numbers are pair numbers)😎
Explain:
To determine whether a number is even or odd and return 0 or 1, you must use the module (%) operator. The % 2 operation will return 0 if the number is even and 1 if it is odd.
How the Module Operator Works
• The module (%) operator returns the remainder of a division operation.
• When dividing an integer by 2, the remainder can only be 0 or 1.
• If the remainder is 0, the number is divisible by 2 and is therefore even.
• If the remainder is 1, the number is not divisible by 2 and is therefore odd.
In Kustom software you can use this function:
• $if(N%2, "odd", "even")$
This function return the text "even" if your numbers "N" are pair; otherwise return "odd" becose the even numbers return zero in the condition of "if" function
Knowing this, I thought of using it to make the two points of the clock blink to the beat of the seconds with the following formula:
• $if(df(ss)%2," ",":")$
Simple and easy 😎🤙🏻
Thanks to the Kustom team for making dreams come true... And saving the world from aliens ❤️😝