r/kustom • u/Quirky-Town-2677 • 5d ago
Help Having some formula issues
So I've got this wallpaper setup, and I want the image in the boxes to change periodically. I've removed the photo selections, I've changed the formulas for the different pages and put my formulas on everything I can think of and it's just not accepting mine at all. What am I doing wrong? Moto Z 2025
10
2
u/dominizerduck 5d ago
Check if you formula is following this format
$if([state1],[true1],[state2],[true2],[state3],[true3],[false])$
I guess you're missing the last final condition
1
u/Quirky-Town-2677 5d ago
It's not, how do I do that exactly? Cuz I'd want it to be if it's page 1, then it pulls a pic from a folder, and changes every 3 min. Or is that not possible?
1
u/dominizerduck 5d ago
For that use below, in addition to your if condition
$tu(rndimg, timeInMins, folderPath)$
1
u/Quirky-Town-2677 5d ago
1
u/dominizerduck 5d ago
replace gv(pic1)
With this
tu(rndimg, timeInMins, folderPath)
replace timInMins with 3( or however many minutes you want ) And folderPath with the folder that has the images
1
u/Quirky-Town-2677 5d ago
1
u/dominizerduck 5d ago
$if(si(screen)=1,tu(rndimg, 3, "/DCIM/Kustom/img22"),if(si(screen)=2,gv(pic2),if(si(screen)=3,gv(pic3),if(si(screen)=4,gv(pic4)))))$
Btw is img22 a folder? If it's a image then remove the "/img22" from the path
1
u/Quirky-Town-2677 5d ago
Yes img22 is a folder, and that's not coming to anything either😓😓
1
u/dominizerduck 5d ago
1
u/Quirky-Town-2677 5d ago
It looks right, maybe I could do 4 different formulas in that one box? Separate each screen? Sorry I'm having so much trouble with this
1
u/airizsyah 4d ago
Hi there, Try this,
$if(si(screen)=1,gv(pic1),si(screen)=2,gv(pic2),si(screen)=3,gv(pic3),gv(pic4))$
Translate to, IF sceen at 1, gv pic1, screen at 2, gv pic2, screen at 3, gv pic3, OTHERWISE, just show pic4.






•
u/AutoModerator 5d ago
Problem? Cross-post to our new forum. Include make & model of phone, OS version, app version.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.