Skip to content

gianpierodiblasi/LogicalOperatorWidget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LogicalOperatorWidget

An extension to perform logical operations.

This Extension is provided as-is and without warranty or support. It is not part of the PTC product suite and there is no PTC support.

Description

This extension provides a widget to perform logical operations.

Properties

  • debugMode - BOOLEAN (default = false): if set to true it sends to the browser's JS console a set of information useful for debugging the widget
  • operation - STRING (default = 'OR'): The logical operation (options: OR, NOR, AND, NAND, XOR, NXOR, NOT, CUSTOM; if operation is CUSTOM then a custom editor is available)
  • numberOfOperands - INTEGER (default = 2): The operands number (visible if and only if operation is not NOT and CUSTOM)
  • operand, operand1, ..., operand<numberOfOperands> - BOOLEAN (no default value): dynamic properties based on the value of operation and numberOfOperands, they are the operands (visible if and only if operation is not CUSTOM)
  • output - BOOLEAN (default = false): The output (visible if and only if operation is not CUSTOM)
  • customInputs - BOOLEAN (no default value): any input defined if operation is CUSTOM
  • customOutputs - BOOLEAN (no default value): any output defined if operation is CUSTOM
  • autoEvaluate - BOOLEAN (default = false): true to automatically evaluate output when a new operand value is set

Services

  • Evaluate: service to execute the operation

Events

  • Evaluated: event to notify the operation has been executed

Dependencies

Donate

If you would like to support the development of this and/or other extensions, consider making a donation.