StrictAscendingComparator

Constructor

StrictAscendingComparator <id> (double left, double right)

Or, within an expression:

<process_id|number> < <process_id|number> <process_id|number> > <process_id|number>

Action

Compares left and right values each time one of it is updated.

Predefined children

  • DoubleProperty: left, right.
  • BoolProperty: result.

Example


use core
use base
use gui

_main_
Component root {
  Frame f ("myFrame", 0, 0, 500, 500)
  Circle c (100, 100, 10)
  f.move.x => c.cx

  Bool in_range (1)
  (c.cx > 50) && (c.cx < 150) => in_range
  TextPrinter log
  in_range => log.input
}

run root
run syshook