Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
eyes:logics:condition [2017/06/09 14:15]
sfiedle
eyes:logics:condition [2017/06/12 15:12] (current)
sfiedle [Example]
Line 1: Line 1:
 ====== Condition ====== ====== Condition ======
-With this element smaller if-clauses can be implemented. ​The IO can be verified if it fulfills certain conditions. ​+With this element smaller if-clauses can be implemented. ​It can be verified if the I/O fulfills certain conditions. ​
  
 ===== Usage ===== ===== Usage =====
-Here, a general/generic description of HOW the logic is USED should be givenTry to be as general as possible, but also mention prerequisites,​ restrictions,​ advantages, requirements which are specific of this logicBasically everything the user needs to know to successfully ​use this logic.+[[https://www.lua.org/​manual/​5.1/​manual.html#​2.5.2 | Relational operators from Lua]] are used to construct valid condition statementsIn order to verify a specification of an I/O it is possible ​to read the I/O header value by the [[eyes:​logics:​script|]] and then make use o a valid Boolean expression. The condition will not modify the I/O
  
 ===== Example ==== ===== Example ====
-Here, a very specific example should be given/​describedIn the future, this can be supported by screenshots etc.. For the moment, give an example easy enough for the user to understand, but specific enough to elaborate why a given parameter is a good set for this very situation. +{{ :​eyes:​logics:​condition.png?nolink |}}
 ===== Parameters and I/O ===== ===== Parameters and I/O =====
  
 |< 100% 30% >| |< 100% 30% >|
 ^ Input   ^ Description ^ ^ Input   ^ Description ^
-| FirstInput ​ |  IO, which is |+| FirstInput ​ | IO to be passed ​|
  
 |< 100% 30% >| |< 100% 30% >|
 ^ Output ​  ^ Description ^ ^ Output ​  ^ Description ^
-| FirstOutput | Output Description ​+| FirstOutput | IO passed, if the condition is true 
-| SecondOutput | IO  |+| SecondOutput | IO passed, if the condition is false  |
  
 ===== Concept ===== ===== Concept =====
-In this paragraph, the "HOW a logic works under the hood" and WHY someone should use it can be elaborated with higher detailDescribes a scenario in an image processing workflow where this logic can be used to solve the resulting problemAlso, wikipages, publications or anything else describing the theory behind an algorithm should be linked here, if applicable.+[[https://​www.lua.org/pil/3.2.html|Relational Operators in Lua]]