Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Conditionals Q&A
- -----------------------
- [Tools for learning conditionals]
- Q: by smallpsych
- I want to learn this stuff. I've used things like Zooper and such in the past but those aps for making widgets typically don't have you writing the conditional codes yourself. I know nothing about this and was hoping for some help.
- Thanks in advance.
- A: by ApSciLeonard
- Conditionals are simple once you get behind the syntax. They are all constructed in the following scheme:
- $[TAG][<>=][X]?[true]:[false]$
- Simply put:
- If [TAG] is [<>=] than [X] then set to [true], if not set to [false].
- So, imagine you want your watchface to have a background image, but have it disappear after 10PM. Simply put
- $#DHZ#<22?100:0$
- as opacity of the background image. This way, facer will check if #DHZ# is below 22, and will turn off the background image once it isn't.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement