And

Constructor

And <id> (int left, int right)

Or, within an expression:

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

Action

Checks for logical and between left and right values each time one of it is updated.

Predefined children

  • BoolProperty: left, right, 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