Advertisement
Guest User

Conditionals Basics Q&A

a guest
Oct 1st, 2014
1,537
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. Conditionals Q&A
  2.  
  3. -----------------------
  4.  
  5. [Tools for learning conditionals]
  6.  
  7. Q: by smallpsych
  8. 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.
  9. Thanks in advance.
  10.  
  11. A: by ApSciLeonard
  12. Conditionals are simple once you get behind the syntax. They are all constructed in the following scheme:
  13. $[TAG][<>=][X]?[true]:[false]$
  14. Simply put:
  15. If [TAG] is [<>=] than [X] then set to [true], if not set to [false].
  16. So, imagine you want your watchface to have a background image, but have it disappear after 10PM. Simply put
  17. $#DHZ#<22?100:0$
  18. 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