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:flowcontrol:condition [2018/01/16 10:41]
sfiedle [Usage]
eyes:flowcontrol:condition [2018/01/22 16:04] (current)
sfiedle [Example]
Line 3: Line 3:
  
 ===== Usage ===== ===== Usage =====
-[[https://​www.lua.org/​manual/​5.1/​manual.html#​2.5.2 | Relational operators from Lua]] are used to construct valid condition statements. The condition will not modify the I/O. It only passes the IO to eihter ​the tru or false output stream.\\+{{ :​eyes:​flowcontrol:​conditionprop.png?​nolink&​600|}} 
 +[[https://​www.lua.org/​manual/​5.1/​manual.html#​2.5.2 | Relational operators from Lua]] are used to construct valid condition statements. All statements formulated with relational operators return true or false. The condition will not modify the I/O. It only passes the IO to either ​the then - true or else - false output stream.\\
  
-In order to verify a specification of an I/O it is necessary to formulate a conditional statement. To compare a certain I/O header value it is possible to read this value  by standard Lua scripting.\\+In order to verify a specification of an I/O it is necessary to formulate a conditional statement. 
 +  
 +To compare a certain I/O header value it is possible to read this value by standard Lua scripting.\\
 **cow.io[0]["​image header value name"​] ​ == value** \\ **cow.io[0]["​image header value name"​] ​ == value** \\
  
Line 12: Line 15:
  
 A third option is to compare a header value of an I/O with a Variable.\\ A third option is to compare a header value of an I/O with a Variable.\\
-**cow.VariableName ​ < = cow.io[0]["​image header value name"​]**+**cow.VariableName ​ < = cow.io[0]["​image header value name"​]** ​ 
 + 
 + 
 + 
 + 
 + 
  
-{{ :​eyes:​flowcontrol:​conditionprop.png?​nolink |}} 
 ===== Example ==== ===== Example ====
-{{ :​eyes:​flowcontrol:​condition.png?​nolink |}}+{{ :​eyes:​flowcontrol:​condition.png?​nolink800 |}} 
 + 
 +**Properties Window** ​  
 +|< 100% 5% 40% >| 
 +^                    ^                  ^      ^ 
 +|{{:​eyes:​flowcontrol:​a.png?nolink&40|}}|{{:​eyes:​flowcontrol:​conditionproperties.png?​nolink|}}|The condition here in the example verifies the dimension of the I/O from the Import logic on the first position of the I/O. It checks whether the header key dimensionality is equal to three. In this case the condition is true and therefore the statement will pass the I/O to the logic Projection. The logic ran through and went green. ​ The logic FourierProcesses is pending.| 
 ===== Parameters and I/O ===== ===== Parameters and I/O =====