Differences

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

Link to this comparison view

Both sides previous revision Previous revision
if_then [2015/10/14 03:22]
admin
if_then [2026/08/28 03:22] (current)
hermann Sync from local documentation review
Line 1: Line 1:
-====== If Then ====== ​+====== If Then ======
  
 ===== Description ===== ===== Description =====
  
-This container executes contained ​functors ​conditionally.+Executes the functors ​it contains only when its condition is true.
  
 ===== Inputs ===== ===== Inputs =====
  
 ^ Name  ^ Type  ^ Description ​ ^ ^ Name  ^ Type  ^ Description ​ ^
-| Condition ​ | [[Boolean Value Type]] ​ | Condition ​defining if the contained functors ​should be used executed or not. The content is executed if the condition is ''​true''​.  |+| Condition ​ | [[Boolean Value Type]] ​ | Condition ​that determines whether ​the contained functors ​execute.  |
  
 ===== Optional Inputs ===== ===== Optional Inputs =====
  
-None.+^ Name  ^ Type  ^ Description ​ ^ Default Value  ^ 
 +| Sequence Input  | [[None Type]] ​ | Ensures that the functor connected to this port finishes executing before this container starts | None  |
  
 ===== Outputs ===== ===== Outputs =====
  
-None.+^ Name  ^ Type  ^ Description ​ ^ 
 +| Sequence Output ​ | [[None Type]] ​ | Connect this port to another container'​s Sequence Input to make this container finish executing before that other container starts |
  
 ===== Group ===== ===== Group =====
Line 22: Line 24:
 [[Functor List#​Control | Control]] [[Functor List#​Control | Control]]
  
-===== Notes ===== +===== Notes =====
  
-None.+When Condition may be false, and a result produced by the contained functors is used outside the container, connect a matching junction (such as [[Map Junction]] or [[Value Junction]]) after the container, so a value still reaches the rest of the model when the content does not execute.
  
-===== Internal Name ===== +===== Internal Name =====
  
 IfThen IfThen