Watchface Builder Wiki

Ultimate Watchface Builder

User Tools

Site Tools


expressions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
expressions [2016/02/28 15:31]
Wearable Software
expressions [2021/02/17 21:40] (current)
Line 1: Line 1:
-====== Expressions ======+====== Using expressions to create a dynamic watchface ====== 
 +Use operators, mathematical functions or conditional statements to build a more dynamic watchface.
  
 ===== Built-in operators ===== ===== Built-in operators =====
 +Watchface Builder supports following operators:
       * Addition: 2 + 2       * Addition: 2 + 2
       * Subtraction: 2 - 2       * Subtraction: 2 - 2
Line 37: Line 39:
  
 ===== Conditional statements  ===== ===== Conditional statements  =====
-You can use condition statements in expressions to build dynamic watchfaces. The syntax for a conditional statement is:+You can use condition statements. The syntax is:
  
 <code>$condition?true value:false value$</code> <code>$condition?true value:false value$</code>
Line 49: Line 51:
   * not equals !=   * not equals !=
  
-===== Example =====+==== Example ==== 
 +For example if you want a blinking watchface layer set following expression on your opacity property.
  
 +<code>${ds}%2==0?100:0$</code>
  
 +Every time the seconds value changes and the value divided by two gives no rest, the layer will be displayed.
expressions.1456669913.txt.gz · Last modified: 2021/02/17 21:40 (external edit)