Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Conditionals Pastebin, Q&A
- -----------------------
- [Conditionals In battery Percentage]
- Q: by upsafe
- Hey all - as someone who has low computer programming, math etc. skills, I need some help trying to put a conditional in battery percentage.
- I'm trying to make the battery appear when it's 20% or less. I know this may be an easy question...sorry!
- A: by wes__
- $#BLN#<=20?100:0$ should do the trick.
- A: by riot9000
- I did the same thing! using the same formula below but I have it show up at 50% then turn bold/red when it hits 20%. I had to use 2 text fields and set the first one to move off the screen when i hit 20%. (set X Offset to " $#BLN#<=20?0:50$ " and Y Offset to " $#BLN#<=20?0:164$ ")
- by wes__
- So, the above equation description would move the image from where you place it to somewhere off the screen (for a moto 360) depending on the battery level number. X and Y offsets are what make your image show up where they do on the screen. X is your horizontal pixel measurement and Y is your vertical pixel measurement.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement