Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
eyes:flowcontrol:condition [2018/01/16 10:50] sfiedle [Usage] |
eyes:flowcontrol:condition [2018/01/22 16:04] (current) sfiedle [Example] |
||
---|---|---|---|
Line 4: | Line 4: | ||
===== Usage ===== | ===== Usage ===== | ||
{{ :eyes:flowcontrol:conditionprop.png?nolink&600|}} | {{ :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.\\ | + | [[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. | In order to verify a specification of an I/O it is necessary to formulate a conditional statement. | ||
Line 24: | Line 24: | ||
===== 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 ===== | ||