Random image from 2 folders daytime based

Hi, i'm using this formula " $tu(rndimg, 1/8, "/storage/emulated/0/Pictures/Mycollections/Wallpaper")$ " to pick up a random image on my screen as background. I wonder how i can modify the formula to pick up a random image from 2 different folders depending by time of the day. Lets say one for working day and one for the night. Any help? TIA

Hi,

Have you tried this formula to get random image based on daytime?

$if(

ai(isday),

tu(rndimg, 15, "/sdcard/your_folder1"),

tu(rndimg, 15, "/sdcard/your_folder2")

)$

Hope this helps.

many thx..worked like a charm!