This is an old revision of the document!
Variable
The Variable can be used to either save header values of the I/O or to create new variables. It can have different data types, e.g. Integer, Decimal, String. Variables are only valid within the Group where they are created.
Usage
To construct a new Variable it is necessary to drag the logic into a Group on the work space. In the Properties window, the type of Variable is selected and the Variable is given a name. It is possible to set a value and give a description. A logic properties field can access the Variable by a right click in the text field (line edit), where it is supposed to be inserted. Then by clicking on 'Set Variable' a new window opens, where the name is put in. In order to use the Varibale it is necessary to use the prefix “cow.”.
Example
Variable - Integer
Properties Window
![]() | ![]() | |
![]() | ![]() | |
![]() | ![]() |
Variable - String
Properties Window
![]() | ![]() | The logic SortImages |
![]() | ![]() | |
![]() | ![]() |