Or
Constructor
Or <id> (int left, int right)
Or, within an expression:
<process_id|number> || <process_id|number>
Action
Checks for logical or between left and right values each time one of it is updated.Predefined children
- BoolProperty:
left
,right
,result
.
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
}