This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
| ebguide_frequently_used_code [2019/10/03 10:23] admin | ebguide_frequently_used_code [2019/10/03 10:25] (current) admin | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| ** Loop ** | ** Loop ** | ||
| ``` | ``` | ||
| - | let v:k=0; v:kk=0; in | + | let v:k=0; v:kk=0; in | 
| - | while (v:k<3) | + | while (v:k<3) | 
| - | { | + | { | 
| - | ............. | + | ............. | 
| - | ............. | + | ............. | 
| - | v:k+=1 | + | v:k+=1 | 
| - | } | + | } | 
| ``` | ``` | ||
| Line 28: | Line 28: | ||
| false | false | ||
| } | } | ||
| + | ``` | ||
| - | + | **Toggle a Dynamic State Machine** | |
| - | ==== Toggle a Dynamic State Machine | + | ``` | 
| function() | function() | ||
| { | { | ||
| Line 36: | Line 37: | ||
| } | } | ||
| + | ``` | ||
| - | + | **Button Toggle on off** | |
| - | ==== Button Toggle on off | + | ``` | 
| function(v:touchId::int, v:x::int, v:y::int, v:fingerId::int) | function(v:touchId::int, v:x::int, v:y::int, v:fingerId::int) | ||
| { | { | ||
| Line 53: | Line 55: | ||
| true | true | ||
| } | } | ||
| + | ``` | ||
| - | ===== User properties - Conditional Script - On Trigger | + | **Get Parameter from event (P79)** | 
| - | function(v:arg0::bool) | + | ``` | 
| - | { | + | |
| - | v:this.text=v:this."HoverText"[2] | + | |
| - | true | + | |
| - | } | + | |
| - | + | ||
| - | + | ||
| - | ===== Send Parameter from event (P79) | + | |
| function(v:arg0::bool) | function(v:arg0::bool) | ||
| { | { | ||
| Line 69: | Line 65: | ||
| false | false | ||
| } | } | ||
| + | ``` | ||
| - | + | ** play animation (write this in conditional script) ** | |
| - | ====== play animation (write this in conditional script) | + | ``` | 
| function(v:arg0::bool) | function(v:arg0::bool) | ||
| { | { | ||