TextComparator

Constructor

TextComparator <id> (string left, string right)

Action

Checks for equality between left and right strings each time one of it is updated.

Predefined children

  • TextProperty: left, right.
  • BoolProperty: output.

Example


use core
use base
use display
use gui

_main_
Component root {
  Frame f ("myFrame", 0, 0, 500, 500)
  TextComparator tc ("k", "")
  f.key\-pressed_text => tc.right
  TextPrinter log
  tc.output => log.input
}