Value Change

The Value Change trigger runs the operation, according to the value change of the Variable and Object property.

Block

Text

onValueChange(SOURCE, ()=>{
                1
});

Hold Delay

onValueChangeWithDelay(SOURCE, 0, ()=>{
          2              1     3

});

1: Source

2: Hold Delay

When [Hold Delay] is enabled, the operation runs after the set time.

3: Hold delay set time


(Example 1)

If the boolean variable BOOL1 value is inverted ON/OFF, the trigger occurs.

Variable block

Set the variable BOOL1 to the variable block.

Block

Text

onValueChange(BOOL1,()=>{

});

Hold Delay

After a value change and the specified time elapses, the operation is run.

Block

Select the check box to set a delay time.

Text

To set a delay time (for example, 10 seconds) in Text mode, use

onValueChangeWithDelay(BOOL1, 10, ()=>{

});

(Example 2)

If the integer variable INT1 value is changed, the trigger occurs.

Variable block

Set the variable INT1 to the variable block.

Block

Text

onValueChange(INT1,()=>{

});

Hold Delay

After a value change and the specified time elapses, the operation is run.

Block

Select the check box to set a delay time.

Text

To set a delay time (for example, 10 seconds) in Text mode, use

onValueChangeWithDelay(INT1, 10, ()=>{

});

(Example 3)

If the string variable STRING1 value is changed, the trigger occurs.

Variable block

Set the variable STRING1 to the variable block

Block

Text

onValueChange(STRING1,()=>{

});

Hold Delay

After a value change and the specified time elapses, the operation is run.

Block

Select the check box to set a delay time.

Text

To set a delay time (for example, 10 seconds) in Text mode, use

onValueChangeWithDelay(STRING1, 10, ()=>{

});

(Example 4)

If the graphical object Rectangle1 corner radius is changed, the trigger occurs.

The graphical object is drawn on screen editing software.

Screen Object block

Set the object property Rectangle1.CornerRadius.BottomRight.

Block

Text

onValueChange($GraphicObject.Rectangle1.CornerRadius.BottomRight,()=>{

});

Hold Delay

After a value change and the specified time elapses, the operation is run.

Block

Select the check box to set a delay time.

Text

To set a delay time (for example, 10 seconds) in Text mode, use

onValueChangeWithDelay($GraphicObject.Rectangle1.CornerRadius.BottomRight, 10, ()=>{

});