Not

Constructor

Not <id> (int init_val)

Or, within an expression:

!<process_id|number>

Action

Set the ouput property to the negation of input property each time input is updated.

Predefined children

  • BoolProperty: input, output.

Example


use core
use base
use display
use gui

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

  Bool out_of_range (0)
  !((c.cx > 50) && (c.cx < 150)) => out_of_range
  TextPrinter log
  out_of_range => log.input
}